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

Answer Posted / amir

answer 3 is 100% right... it will compile time error
constructor cannot have return type specification

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between access specifiers and access modifiers in java? 16

531


Explain the JDB in depth & command line.

564


What is difference between array and vector?

522


What is keyword auto for?

630


What are the advantages of assembly language?

493






Is singleton thread safe in java?

538


Define Multiprogramming and Multiprocessing in java.

569


Is it possible to specify multiple jndi names when deploying an ejb?

549


How many bits is a word?

554


Explain exception chaining in java?

597


What is meant by call by reference?

498


Can we restart a thread already started in java?

573


What is the purpose of object oriented programming?

526


What does sprintf mean?

523


What is var keyword ?

730