Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Programmer Certification (OCPJP)
finalize () method
Mohammed shareef
Greenhorn
Posts: 10
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can any one explain me when does finalize() is invoke or call by gc ,explain briefly ,if possible with example,Thanking you in advance.
raghu nagabandi
Ranch Hand
Posts: 35
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Finalized method will be called prior to destroying an object by garbage collector.
On every instance finalized method is invoked only once in it�s life time.
But we can not force garbage collector to run gc method or finalized method.
Saurabh Patil
Ranch Hand
Posts: 48
I like...
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
if we exit from program in a abrupt manner say by executing
System.exit(1);
then will finalize method execute ?
SCJP 5. OCPJWCD 6.
[url]
http://passingscjp.blogspot.com
[/url]
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
GC
finalize()
finalize
GC - Finalize Method
regarding finalize methods
More...