🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1959

Re: How Static method is created by compiler?

#1959
From: Yonatan Taub
Date: Sat, 21 Jul 2001 13:43
9 lines
1348 bytes
Also note that static fields are initialized ONLY ONCE when the class is
first loaded.
If persistence issues arise for static fields, there are two method for
writing and reading an object
when you serialize it. In order for static data to maintain persistence you
must explicitly writer and read the fields
in these methods.

For further detail, read Sun's documentation about java.io.Serializable.
Technical Details
Message-ID: <3b597948_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3aea6aff_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,5d083c96572bdeed
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-07-21 05:52:59 PST
Reply-To: "Yonatan Taub" <taubu@tms.huji.ac.il>
From: "Yonatan Taub" <taubu@tms.huji.ac.il>
Newsgroups: borland.public.jbuilder.java.api
References: <3aea6aff_2@dnews>
Subject: Re: How Static method is created by compiler?
Date: Sat, 21 Jul 2001 15:43:43 +0200
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 132.64.12.77
Message-ID: <3b597948_1@dnews>
X-Trace: dnews 995719496 132.64.12.77 (21 Jul 2001 05:44:56 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews