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

Why scanner is used in java?

550


State the difference between strings and arrays.

601


What is a variable in java?

532


What data type is a string?

513


Can we have two main methods in a java class?

538






what is optional in java 8?

560


What is pass by value?

512


Can a class be private in java?

545


What do you mean by an interface in java?

570


how does multithreading take place on a computer with a single cpu? : Java thread

695


Can you override a final method?

582


what methods would you overwrite in java.lang.object class?

566


What is set in java?

528


How to sort a collection of custom Objects in Java?

600


What is the use of a conditional inclusion statement in Java ?

588