Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7966357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:24:16+00:00 2026-06-04T06:24:16+00:00

My understanding is that the PermGen (in some sense) holds the class code in

  • 0

My understanding is that the PermGen (in some sense) holds the class code in memory. Often we have lots of jar files referenced our classpath. When a jar file is included in the classpath (say in the lib directory of tomcat), are all the classes of all those jars automatically loaded into the PermGen?

In a similar question, once a class of a jar file is used, does PermGen load all the classes in that jar file, or just the class that is used (and then later load the rest of the class files when necessary)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:24:17+00:00Added an answer on June 4, 2026 at 6:24 am

    This depends to some degree on the implementation of the classloader and the JVM – the Java Virtual Machine specification says this:

    This specification allows an implementation flexibility as to when
    linking activities (and, because of recursion, loading) take place,
    provided that the semantics of the Java programming language are
    respected, […]

    For example, an implementation may choose to resolve each symbolic
    reference in a class or interface individually, only when it is used
    (lazy or late resolution), or to resolve them all at once while the
    class is being verified (static resolution). This means that the
    resolution process may continue, in some implementations, after a
    class or interface has been initialized.

    In practice, no sane implementation should automatically load everything in a JAR file just because one class in the file is loaded, let alone just because it’s on the classpath.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's my understanding that the Java compiler produces byte code, not object code. First
It is my understanding that it is not possible to have an optional parameter
Memory management with delegates, it is my understanding that I don't retain delegates, I
It is my understanding that every time a class instance is created the instance
It's my understanding that SQL Server 2005 does some sort of result or index
It is my understanding that, in addition to allocating memory, alloc sets all instance
I have the understanding that perm size is used to store meta data, that
It's my understanding that nulls are not indexable in DB2, so assuming we have
It is my understanding that the java.regex package does not have support for named
It is to my understanding that one should use a forward-class declaration in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.