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


Please Help Members By Posting Answers For Below Questions

Write a program to print 15 random numbers using foreach of java 8?

535


Write a java program that prints all the values given at command-line.

540


When do I need to use reflection feature in java?

620


if u open login & logout ,how can udisplay the timelogin & logout members ?

1743


What is assembly language?

546






What is supplier in java?

541


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

606


What is difference between path and classpath?

551


How do I write a self declaration?

539


What are the methods to rectify ambiguities in the interfaces in JAVA?

580


What is the difference between stringbuffer and stringbuilder?

572


Why there is no call by reference in java?

491


How to remove the trailing spaces from a string?

644


What is the default execution method in java?

616


What is overriding in java?

511