waht happens when a return type ,even void is specified for
a constructor?
Answer Posted / shankar
*A constructor is a special method which has the same name
as that of the class which is used for the initialising and
instance,when it is being created itself.
*Normal method may or may not returns values when a normal
method does not return value it is mentioned explicitly
with void keyword
**ANSWER**-- 7 is write
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Write a program to print 15 random numbers using foreach of java 8?
Write a java program that prints all the values given at command-line.
When do I need to use reflection feature in java?
if u open login & logout ,how can udisplay the timelogin & logout members ?
What is assembly language?
What is supplier in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
What is difference between path and classpath?
How do I write a self declaration?
What are the methods to rectify ambiguities in the interfaces in JAVA?
What is the difference between stringbuffer and stringbuilder?
Why there is no call by reference in java?
How to remove the trailing spaces from a string?
What is the default execution method in java?
What is overriding in java?