why constructor dont have returns type?

Answer Posted / sushila

constructor does not have a return type. it is not executed,
while loading class into the memory.

constructor is executed only once for each object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write a program for sending mails between client and server

1542


What is java command?

562


Describe method overriding

575


What is api data?

524


What are the different types of constructor?

516






What is java util list?

478


Is empty list java?

513


What are java packages? What is the significance of packages?

561


What is method overloading in java ?

553


what is mena by object block any what is the use of that

1765


What is the purpose of a default constructor?

573


How many types of interfaces are there?

568


What is encapsulation in java?

613


Explain the significance of listiterator.

576


How do you insert a line break?

486