Answer Posted / sowjanya
constructor is special method with the basic initialization
information of the class variables.this constructor is
accessed at the time of object creation .from this object is
created with initial assignment values of variables. and we
can't call constructor separately.
if you have more than one constructor default constructor is
invoked at the object creation time and we can call other
constructor as we need .
constructor name is same as class name this is way to
identify methods is constructor.
methods are not invoked not default we call that as we
need.method name is not a class name.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
In system.out.println(), what is system, out and println?
What is orm in java?
What is javacpl?
What is entitymanager in java?
can a program use more than one command-line argument?
What is reflection in java?
What is java language expression?
Do I need both jdk and jre?
What about products that claim to block java applets at a firewall? : java security
Can the main method be declared final?
Explain suspend() method under thread class>
Which type of stream is in java?
How do I open java console?
What are the authentication modes in asp.net? : java security
Why are lambda functions called lambda?