JavaBeat
calling cards | international calling cards | phone card
Search JavaBeat

Certification Kits
SCJP 1.5 Exam Questions
SCJP 1.6 Exam Questions
SCWCD 5.0 Exam Questions
SCBCD 5.0 Exam Questions
SCJP 1.5 Links
SCJP 1.5 Home
SCJP Books
SCWCD Books
SCBCD Books
New to SCJP?
SCJP 1.4 or SCJP 1.5?
Objectives
Articles
Mock Exams
Tutorials
Forums
SCJP Exam Voucher
Certification Links
SCJP 1.4
SCJP 1.5
SCJP 1.6
SCWCD 1.4
SCWCD 5.0
SCBCD 5.0
SCEA
SCEA 5.0
JavaBeat
Home
Articles
Tips
Code
QnA
Forums
350 Mock Questions on SCJP 1.5 - JUST Rs.200 or 7 USD
Send us mail to sales@javabeat.net
more details
1. Arrays 2. Variables Declarations 3. Constructors 4. Flow Control
5. Assertions 6. Java Keywords 7. Interfaces 8. Package
9. Finalization 10. Gargage Collection-1 11. Exception 12. Gargage Collection-2
13. Polymorphism 14. Encapsulation 15. Passing variables 16. Equals Method
17. Operators 18. Literals 19. Wrapper 20. String and StringBuffer
21. Math class 22. Threads 23. Thread Methods 24. Thread States
25. Thread Synchronization 26. Collections
Finalization


Java technology allows you to use the finalize() method to do the necessary cleanup before the garbage collector removes the object from memory. This method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object. It is defined in the Object class, thus it is inherited by all classes. A subclass overrides the finalize() method to dispose of system resources or to perform other cleanup:


protected void finalize() throws Throwable

If an uncaught exception is thrown by the finalize() method, the exception is ignored and finalization of that object terminates.

The finalize() method will be invoked only once in the lifetime of an object.

You can use an object's finalize() method to make it ineligible for garbage collection. Note, however, that the garbage collector will not run finalize() for this object again.

The finalize() method will always be invoked once before the object is garbage collected. However, the finalize() method might never be invoked for an object in its lifetime, because there is no guarantee that it will get garbage collected.

1. Arrays 2. Variables Declarations 3. Constructors 4. Flow Control
5. Assertions 6. Java Keywords 7. Interfaces 8. Package
9. Finalization 10. Gargage Collection-1 11. Exception 12. Gargage Collection-2
13. Polymorphism 14. Encapsulation 15. Passing variables 16. Equals Method
17. Operators 18. Literals 19. Wrapper 20. String and StringBuffer
21. Math class 22. Threads 23. Thread Methods 24. Thread States
25. Thread Synchronization 26. Collections
350 Mock Questions on SCJP 1.5 - JUST Rs.200 or 7 USD
Send us mail to sales@javabeat.net
more details

Favorites
AffiliatedAds.com
Buy movies
Access Control
Busby seo challenge contest
Sohbet
Chat
Webmaster Hosting Forum
Java Jobs
MyVideoLib
India News
Internet Advances
Sohbet
chat
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Website (2004-2008), India
javabeat | about us | planetoss
Copyright (2004 - 2008), JavaBeat