What is constructor

Answer Posted / sameer inamdar

Constructor is a method like other methods but it has
the same as the class name and it has no any return type
not even void.
Connstructor is invoke only once at the time of object
creation. We can overload the constructor.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why char array is preferred over string for storing password?

582


What is immutable state?

502


Explain an algorithm to find depth of a binary tree.

544


Is void a data type?

534


What is the meaning of variable in research?

555






What is the history of java?

541


What is args length in java?

660


What is the difference in between cpp and java? Can u explain in detail?

603


What do you mean by stream pipelining in java 8?

732


What is size () in java?

542


What is a instance variable?

579


What is tree in java?

487


What is a nullable field?

575


What is dynamic binding(late binding)?

582


What is purpose of find feature?

607