Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why the constructor should be used in class,if there is no
constructor what will happen?

Answer Posted / devarathnam c,kotagudibanda(po

Hi... Nothing will happen the compilet will supply the
default constructor of the class.Normally canostructor can
be used to instantiate an object.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does constructor return any value?

1009


Explain the difference between serializable and externalizable in java?

1033


What is a numeric literal?

1054


Explain differences between collection api and stream api?

1150


What is method overloading in JAVA? Why is it not present in C ?

1086


Why is the main method declared static?

1108


What is mysql driver class name?

1130


What is a boolean output?

944


Can we have try without catch block?

1061


What happens when a thread cannot acquire a lock on an object in java programming?

994


What are byte codes?

1193


What is a ternary operator in java? What is an interface?

988


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

994


What are the 4 types of research methods?

911


Which class cannot be a subclass in java?

1005