🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #20127

How are classes loaded?

#20127
From: Mark Hunter
Date: Fri, 24 Oct 1997 00:00
20 lines
1280 bytes
This is kind of a dumb question from someone who doesn't know much about
the Virtual Machine.

When is a class loaded? I assume it is not loaded until it's actually
instantiated, or if it has static methods. My real question is: if I use
the same class repeatedly in several different places (like QueryDataSet
when several transactions are simultaneously underway), how many copies
of that class are loaded into memory? Is it appropriate to think of
classes the way you might think of Windows DLLs? In the case of DLLs,
there is only one copy in memory, although several different processes
might be making use of it.

I ask this question because I need to understand whether there is a
performance penalty to pay when using QueryDataSet in a large number of
(theoretically) concurrent classes. Would I be better off using standard
JDBC classes instead, or does it make little difference?

Thanks,
Mark Hunter
Technical Details
Message-ID: <34512EBD.7A9C@dpsla.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6b9468cccb5acc8d,start
X-Google-Attributes: gidf74b3,public
From: Mark Hunter <markh@dpsla.com>
Subject: How are classes loaded?
Date: 1997/10/24
Message-ID: <34512EBD.7A9C@dpsla.com>
X-Deja-AN: 284779366
Organization: None
Newsgroups: borland.public.jbuilder.java.language