why constructor dont have returns type?

Answer Posted / praveen mooli

The value is this object itself so there is no need to
indicate a return value.

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the default access specifier for variables and methods of a class?

559


What do you mean by stream pipelining in java 8?

731


What is an arraylist in java?

510


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

537


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

606






Can I override protected method in java?

587


What is overriding in java?

512


how to handle exceptions in ejb?

1864


Explain the difference between abstraction and encapsulation.

535


What is command line argument

700


What do you understand by synchronization?

584


What is the difference between reader/writer and inputstream/output stream?

549


What is java lang string?

541


What is another word for methodology?

514


Is java type safe?

501