🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1742

Re: Q bout Java Default class loader - forName()

#1742
From: Lori M Olson (TeamB)
Date: Fri, 29 Aug 2003 03:06
34 lines
2173 bytes
Ivan Ooi wrote:
> Hi,
> 
>    Will Java Default class loader - forName() load classes
> multiple times ? Will it check the system memory before
> it load the class again if I can twice in the program ?
> 
> Thanks
> 

http://developer.java.sun.com/developer/onlineTraining/Security/Fundamentals/Security.html#secClassLoader

Pretty much every class loader article (for writing your own) stresses 
the importance of FIRST checking to see if a class is already loaded. 
It should always check, forName() or not.

-- 

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID: <3f4ec32e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3F4EA07F.2070804@netscape.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,3003a477e7ee1495
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2003-08-28 20:10:04 PST
Date: Thu, 28 Aug 2003 21:06:23 -0600
From: "Lori M Olson (TeamB)" <javadragon@techie.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-ca, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Q bout Java Default class loader - forName()
References: <3F4EA07F.2070804@netscape.net>
In-Reply-To: <3F4EA07F.2070804@netscape.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 142.179.181.200
Message-ID: <3f4ec32e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062126382 142.179.181.200 (28 Aug 2003 20:06:22 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news-xfer1.atl.newshosting.com!63.218.45.11.MISMATCH!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail