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

Answer Posted / ramanareddy333

simply it will considered as a normal method in the class

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort double array in java?

579


What is object-oriented programming?

563


What is the use of default method in interface in java?

543


Does java support Operator Overloading?

601


Why do I need to declare the type of a variable in java?

558






What is token in java?

527


Write a java program to count the number of words present in a string?

527


How to connect to a remote database using Applet?

2036


What is unmodifiable list in java?

523


What is lifetime variable?

519


what is the difference between the methods sleep() and wait()? : Java thread

501


Print Vertical traversal of a Binary Tree.

599


Difference between error and exception

4995


How do you do a line break in java?

485


Is integer passed by reference in java?

556