why constructor dont have returns type?

Answer Posted / nn

As far as I know, constructor returns the new object.

Is This Answer Correct ?    2 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I debug the Java security exceptions and AccessControlExceptions?

638


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

494


What is the benefit of using enum to declare a constant?

661


How can we avoid including a header more than once?

613


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

839






Why java doesn’t support multiple inheritances?

584


What is an infinite loop in java? Explain with an example.

588


What is boolean data type in java?

568


Can we call the run() method instead of start()?

590


What are the restrictions imposed on method overriding?

552


How to retrieve data from database in java using arraylist?

529


what is a working thread? : Java thread

553


What is a heavyweight component?

542


what is thread? What are the high-level thread states? : Java thread

786


How to make a write-only class in java?

577