The finalize() method of any object is called by the JVM during a GC cycle.
This gives the developer the chance to do any clean up before the
object is removed from object heap. A good example of cleanup might
be closing JDBC connection to a database or cleanly closing socket
connection,

Cheers
Chris

Quanyu Zhu wrote:

> Hi,there:
>      Thanks for the comments on reading huge file using java .
>     Following some of your comments, right now I got a solution, which
> tested for one 150M file just using 1 minutes and then draw the image.
> That sounds a good result I can get.
>     Actually, I just used the bufferIO, and use only 1M tempery array to
> store them and then compute the 1M info into the image array which is
> more less than the whole file. Then it felt good.
>     I really learned a lot from your guys. Thanks.
>     Actually, I still have some questions which may need your guys to
> help me figure out.
>    1. Does Java garbage collection will destory the resourse such as big
> array when no more reference point to it ? How can it work???
> Does it work - no more reference - mean -- no more object use the
> reference to this array ?
>    2. Does the finialize() invoke the garbage collection thread ? As I
> know, there are method System.gc() can invoke the garbage collection
> right away. Does the finialize do the same thing ?
>    Well, just appreciated your guys help !!!
>    Have a nice day !
>
> Best Regard
> Quanyu Zhu
>
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
begin:vcard 
n:Hinds;Christopher 
tel;fax:718-789-7906
tel;home:718-789-7906
x-mozilla-html:FALSE
org:Heuristic Systems, Inc.
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Engineer - President
adr;quoted-printable:;;160 FIFTH AVE=0D=0ASUITE 4R;Park Slope;NY;11217;USA
x-mozilla-cpt:;0
fn:Christopher Hinds
end:vcard

Reply via email to