Java constructor online quiz test

Java interview question on constructor


Constructor is a special member of a class which is used to initialize the state of an object. It provides the values to the data members at the time of object creation that is why it is known as constructor.

Content Protection by
Please Share