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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is are packages?

584


Is minecraft java edition free?

576


what is meant wrapper classes?

601


What are the types of web technologies?

524


What defines function?

536






What is an off by one error in java?

498


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1458


What steps are taken when the OS shifts from one-thread execution to another?

901


how to convert Java project into Maven ?

583


Which api is provided by java for operations on set of objects?

907


What is thread safe singleton?

515


What is boolean logic?

559


What is a default constraint?

611


Can we access instance variables within static methods ?

565


What are invisible components?.

1677