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...

what is constructer?what are the type of constructer with
example.

Answer Posted / sandesh nawadkar

Constructor is a same as method but it isnot exactly a
method . It has same name as a Class. It has access
specifier but not return type. Constructor is used to
create and initialize objects at runtime.
There are different types of constructors in different oop
languages.
e.g. Consider, java language-there are two types:-
1. Default
2. Parameterized.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?

912


What is an action class in java?

1024


What is gpt and gpc? : java security

1027


What is the purpose of jdk?

917


When a thread is created and started, what is its initial state?

971


Why struts framework is used in java?

927


How do I enable java in google chrome?

1054


What type of parameter passing does java support?

846


Why sun introduce concept of anonymous class? What is need and real life use of anonymous class

2212


What is meant by annotation in java?

982


How do javabeans work?

881


In java thread programming, which method is a must implementation for all threads?

1008


What is jsr in java?

917


What are the rules regarding quotation marks?

951


What is cdi in java?

895