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. |
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...
|
|||||||
|
|||
|
Re: override the finalize() method
when you have to close resources like files or database connections or socket connectioins.
|
|
|||
|
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. |
|
|||
|
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. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |