Publish On: 2019-05-24


Total Post: 15

Question: what is meaning by constructors?

Constructors: Java supports a special type of method, called consttuctors,that enables an object to intialize itself when it is created.

1.constructors have same name as the class itself.
2.they donot have return type,not even void.

Reply On: 2015-09-04


Total Post: 0

ANS: what is meaning by constructors?

Java constructor is invoked at the time of object creation. It constructs the values that is provides data for the object this is known as constructor.

Submit Your Answer

warning: Please Login To Submit Your Answer
Like Us On Facebook for All Latest Updates