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 are the differences between constructor and method of a class in Java?

Answer Posted / nashiinformaticssolutions

Initializing the state of the object is done by constructors. A function Object () { [native code] }, like methods, contains a group of statements (or instructions) that are carried out when an object is created. A method is a group of statements that work together to complete a certain task and return the outcome to the caller. A method has the option of working without returning anything.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does java se mean?

970


Can singleton class be serialized?

912


What is the difference between heap memory and stack memory?

1019


What is the += operator called?

1002


What is a boolean used for?

1070


Can we create more than one object singleton class?

993


What is java thread dump, how can we get java thread dump of a program?

945


What is use of set in java?

940


How many arguments can a method have java?

980


How do you clear a method in java?

967


What is private public protected in java?

996


What is consumer in java?

929


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

959


Can you make a constructor final in Java?

1074


What is return used for in java?

981