ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Constructors

Is nothing but a method with a name same as its class name. No return type for a constructor. Constructor is called implicitly whenever the class is instantiated. It is basically meant for providing initial state to the object. Without a constructor, object can’t be created. It doesn’t mean that the constructor creates the object. If we don’t write constructor in a class, compiler will supply a constructor.

 

Related Posts Plugin for WordPress, Blogger...
Flag Counter