HJW
HJW

Reputation: 23443

When i develop my codes under Sun JDK and run my codes in Oracle JRockit JVM, am i using libraries from JRockit?

When i develop my codes under Sun Standard JDK, and run my codes in Oracle JRockit JVM, am i using the implementation of the String class provided by Hotspot VM or JRockit VM?

Upvotes: 1

Views: 115

Answers (3)

Marcus
Marcus

Reputation: 141

Note that the JRockit String implementation is fully Java complaint, so API wise there are no differences. JRockit substitutes some parts of the core classes for efficiency, but no public APIs are changed.

Upvotes: 0

kosa
kosa

Reputation: 66637

It will be JRockit JVM while runtime.

Upvotes: 1

Eric B.
Eric B.

Reputation: 24411

I'm not entirely sure what you mean by "when you develop your code", but I assume that you are referring to the JRE configuration in your IDE when you are doing your development.

Either way, the important thing to know is that when you run your code, the VM is providing the implementation for the classes that your code does not include. So if you are using a java String class, it will be the VM that is providing it. If you are running the code in your IDE, then it would be Sun's implementation. If you are running it in a different VM, it would be that VM that is providing the implementations.

So, long answer to say that it would be the JRockit String implementation.

Upvotes: 3

Related Questions