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

Explain the selection sort algorithm?

777


What is data member in java?

612


What is the difference between stored procedure & function?

662


How do I get 64 bit java?

653


Can an interface have a constructor?

655






What is the dot operator?

687


When should you use arraylist and when should you use linkedlist?

617


Can keyword be used as identifier?

675


What is finally and finalize in java?

715


Explain serialization and deserialization in java?

690


What do you mean by chromounits in java8?

620


Can we have try block without catch block?

696


How many types of java are there?

676


What is a map? What are the implementations of map?

700


What are the drawbacks of reflection?

675