Why constructor is needed? It can be a slow process to initialize all variables of a class, each time when an object is created. Because the requirement of initialization is very common, JAVA allows objects to initialize themselves when they are created. This automatic initialization is performed through the use […]