Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

constant pool resolution

 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers,

what is constant pool resolution ?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please SearchFirst(⇐click me).

what is constant pool resolution ?(⇐click me)
 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok
 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

here it is http://java.sun.com/docs/books/jvms/first_edition/html/ConstantPool.doc.html

i have gone through it. i found that a class is represented through structure
like :

CONSTANT_Class_info {
u1 tag;
u2 name_index;
}


Is this structure is same as a structure in C ?
 
Henry Wong
author
Marshal
Pie
Posts: 20889
75
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen yadav wrote:
here it is http://java.sun.com/docs/books/jvms/first_edition/html/ConstantPool.doc.html

i have gone through it. i found that a class is represented through structure
like :

CONSTANT_Class_info {
u1 tag;
u2 name_index;
}


Is this structure is same as a structure in C ?



Just in case, you haven't realized yet..... most of the JVM (except the java libraries) is written in C/C++, with a little bit of assembly. That document is talking about such a component.

Henry
 
naveen yadav
Ranch Hand
Posts: 384
Java MyEclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you henry.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
naveen yadav wrote:
here it is http://java.sun.com/docs/books/jvms/first_edition/html/ConstantPool.doc.html

i have gone through it. i found that a class is represented through structure
like :

CONSTANT_Class_info {
u1 tag;
u2 name_index;
}


Is this structure is same as a structure in C ?


No. That's an abstract structure that can be implemented in any language, even Java. The most common JVM implementations in use are written at least partially in C or C++. So in practice, it's likely to be a C/C++ struct or a C++ object.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to Java in General. (The internals of the JVM are certainly not a Java Beginners topic!).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic