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?



. What are the differences between constructor and method of a class in Java?..

Answer / 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

More Core Java Interview Questions

what is the purpose of method overriding in java where v r completely re-defining a inherited method instead y can't v create a new method and define.If the question is very silly plz excuse me and do reply.Thank U!

7 Answers   emc2, Kumaran Systems,


Why should I use abstract class?

0 Answers  


what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


What is difference between length and length() method in java ?

0 Answers  


What are streams?

0 Answers  


What is sortedmap interface?

0 Answers  


How do you override a variable in java?

0 Answers  


Is minecraft 1.15 out?

0 Answers  


What are facelets templates?

0 Answers  


When throws keyword is used?

0 Answers  


aabccdee Find the used alphabets as abcde ?

4 Answers  


In C we use only compiler. Why java uses both compiler and interpreter? What is its significance?

5 Answers  


Categories