ClassName className = new ClassName(); When you run the " New ClassName(); ", that is when you initialize the class. It creates a new instance of the class and also run the public ClassName() { } in the class.