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 the life-cycle of an object?

Answers were Sorted based on User's Feedback



What is the life-cycle of an object?..

Answer / javamasque

The life cycle of an object starts with instantiation and ends with garbage collection

Is This Answer Correct ?    51 Yes 3 No

What is the life-cycle of an object?..

Answer / chantiraji

Object creation
---------------
The operator new allocates storage in the heap and invokes a constructor method for initialization of the object.

Object deletion
---------------
The Java garbage collector runs in parallel (as a thread) with the executing program, so garbage collection is in some sense continuous in Java. A class can have a finalize method that is to be invoked (automatically) before deleting an object. This is useful in case there are any resources, such as an open file, that need to be released by the object before it is removed from the system.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are wrapper classes?

11 Answers   Noah Solutions,


What is r in java?

0 Answers  


What is a void method java?

0 Answers  


what is ABSTRACTION and what are using in real time project?

1 Answers   iGate,


what is the difference between statis block and static variable

7 Answers  


What is %02d?

0 Answers  


What about instanceof operator in java?

0 Answers  


Why we override equals() method?

0 Answers  


What are methods in java?

0 Answers  


How do you remove duplicates in java?

0 Answers  


What invokes a thread's run() method in java programming?

0 Answers  


Do I need java on my computer?

0 Answers  


Categories