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

Which collections are thread safe in java?

884


Can a string be null?

924


What is the difference between char and char *?

1005


What is the flag in java?

991


What is a protected class in java?

937


How many bytes is a string java?

964


Explain the init method?

920


Can we override static methods in java?

1012


why Interface used?

950


What is meant by attribute?

1032


Realized?

2126


Can we have static methods in an interface?

999


Why does java does not support multiple inheritance? Explain

923


Why we override equals() method?

980


Can we create our own wrapper class in java?

908