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

Differentiate constructor and a method and how are it be
used?

Answer Posted / janet

Constructor will be automatically invoked when an object is
created whereas method has to be called explicitly.

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we access static members in java?

1110


Explain about anonymous inner classes ?

1083


What is a stringbuilder?

918


What is the purpose of encapsulation?

1017


How will you print number in reverse (descending) order in BST.

982


Outline the major features of java.

1078


Can extern variables be initialized?

954


What is the use of join method?

1033


If a class is declared without any access modifiers, where can the class be accessed?

1066


Which class is the superclass for all the classes?

1021


What is enhanced loop in java?

988


What is keyword and identifier?

1136


Can a static class have a constructor?

1004


What is volatile data type?

1012


What are encapsulation, inheritance and polymorphism?

1013