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 meant by constructor?

Answer Posted / shiva

java allows objects to initilize themselves when they are
created .this automatic initilization is done wih the use
of constructor .a constructor is a special type of method
that has the same name of its class.when ever an object of
class is created,its constructor will be invoked and it
will initilized the object.the return type for a
constructor is not defined as it implicitly takes its class
type as return type.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you differentiate abstract class from interface?

1009


What is the use of object and class classes?

1078


What is subsequence of a string?

1149


What do you understand by a Static Variable?

1262


What are instance variables?

1124


What does %4d mean in java?

1536


What is the purpose of a volatile variable?

1103


What is a condition in java?

1088


What do you mean by access modifier?

1104


What are advantages of exception handling in java?

1067


what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread

1157


Why declare Main() method as a static in java ?

1121


What is array list in java?

1124


Can we have multiple classes in single file ?

1111


Can a class have a static inner class?

1117