Where is the definition of class stored in memory ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
It depends on which Java you’re talking about
See the JVM spec.
That said, Sun Java has a section of memory called the permanent generation, which includes class definitions. Because of its original intent (a relatively small area for mostly static classes), the permanent generation doesn’t always fit well with dynamic langauges targetting the JVM. See this discussion of JRuby issues. That is part of the motivation for the Da Vinci Machine project, which aims to improve VM support for such languages.