Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

override the finalize() method

This is a discussion on override the finalize() method within the Java forums, part of the Software Development category; When might you override the finalize() method...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2009
Junior Member
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
manieie05 is on a distinguished road
override the finalize() method

When might you override the finalize() method
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-13-2009
Junior Member
 
Join Date: Mar 2009
Location: Karachi
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
awasie is on a distinguished road
Re: override the finalize() method

Quote:
Originally Posted by manieie05 View Post
When might you override the finalize() method
when you have to close resources like files or database connections or socket connectioins.
Reply With Quote
  #3 (permalink)  
Old 03-14-2009
Junior Member
 
Join Date: Feb 2008
Location: Erode
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
ananth3335 is on a distinguished road
Re: override the finalize() method

normally finalize() should after the catch block.
when Exception is happen that going to execute your catch block and then that going to close,so
you have to close the connection of source that used in your program for that only finalize() method used.
Reply With Quote
  #4 (permalink)  
Old 03-21-2009
Junior Member
 
Join Date: Mar 2009
Location: Warangal
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sandeepvudutala is on a distinguished road
Re: override the finalize() method

it the method where all the connections will be closed. so we cannot override that method

Last edited by sandeepvudutala; 03-21-2009 at 01:20 AM.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Lookup condition override abanu Data Warehousing 2 09-06-2008 07:10 AM
can we call Finalize() ? atnbhushan Java 0 02-22-2008 08:05 AM
dispose,finalize venkat.rbs VB.NET 3 02-13-2008 11:33 AM
Need more information on finalize method. TigerElango Java 2 08-16-2007 09:06 AM
without using joiner transformation n sql override how can we join two tables neelkamal88 Data Warehousing 0 05-15-2007 03:55 AM


All times are GMT -4. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved