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 8489595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:52:16+00:00 2026-06-10T21:52:16+00:00

I read on the JVM memory model and got confused with the follows: Does

  • 0

I read on the JVM memory model and got confused with the follows:

  1. Does the JVM store the .class instance in its memory. If yes then in which area.
  2. Is it like as soon as the class is loaded,the JVM generated
    machine level code and then starts executing the machine code
    instructions and then only the objects are created on heap and
    method area is populated.
  3. The perm gen etc areas store the byte code or the machine level
    code?
  4. perm gen vs method area

I would really appreciate any help on the topic.

Thanks.

  • 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-10T21:52:18+00:00Added an answer on June 10, 2026 at 9:52 pm

    1) .class file will be store in permgen memory area on load.

    2) Objects on HEAP will be created while program run, when you explicitly create, not on load. The JVM compiles methods ‘lazily’, that is it emits small stubs in place of the compiled machine code of the method that will trigger the compilation of each method. This means that methods that are not used are never compiled.

    3) perm gen stores bytes code (.class file will be loaded), not sure about machine level code.

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

Sidebar

Related Questions

I have read through this Process Memory Vs Heap -- JVM and i have
I read that JVM stores internally short, integer and long as 4 bytes. I
I read the JVM specification for the fpstrict modifier but still don't fully understand
I've often read that in the Sun JVM short-lived objects (relatively new objects) can
I'm working on a JVM project which uses ESRI components (COM based, wrapped with
I have read a lot about the Java class loading process lately. Often I
I read that JVM achieves the synchronization by copying data of shared variable from
I read somewhere that java can allocate memory for objects in about 12 machine
There are cases when one needs a memory efficient to store lots of objects.
For Sun/Oracle's JVM, I've read that the GC algo divides new generation into one

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.