waht happens when a return type ,even void is specified for
a constructor?

Answers were Sorted based on User's Feedback



waht happens when a return type ,even void is specified for a constructor?..

Answer / guest

You will get a compile time error as , Construcors only
initialize values and does not return any thing.

Is This Answer Correct ?    2 Yes 14 No

Post New Answer

More Core Java Interview Questions

What is difference between compatible and incompatible changes in serialization?

1 Answers   Synechron,


Name few "optional" classes introduced with java 8 ?

0 Answers  


what is Portal(web based online portal)?

2 Answers   AIG,


What is the reason that multiple inheritance is not possible in java??

1 Answers  


What is collection class in java? List down its methods and interfaces.

0 Answers  






What does java final mean?

0 Answers  


Do I need java for windows 10?

0 Answers  


What do you understand by soft reference?

0 Answers  


In which language java is written?

0 Answers  


does java support default argument in Method?

1 Answers  


Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.

5 Answers  


While opening the file, what type of exceptions can be caught?

3 Answers  


Categories