File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes constant pool resolution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "constant pool resolution" Watch "constant pool resolution" New topic
Author

constant pool resolution

naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

hi ranchers,

what is constant pool resolution ?
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Please SearchFirst(⇐click me).

what is constant pool resolution ?(⇐click me)
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

ok
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384


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
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

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

Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
naveen yadav
Ranch Hand

Joined: Oct 23, 2011
Posts: 384

thank you henry.
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

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

Joined: Aug 16, 2005
Posts: 14268
    
  21

Moved to Java in General. (The internals of the JVM are certainly not a Java Beginners topic!).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: constant pool resolution