Featured Post

The great debacle of healthcare.gov

This is the first time in history when the president of the United States of America, or probably for any head of state around the world,...

Tuesday, February 17, 2009

Few interesting concepts deep inside the Java Virtual Machine (JVM)

Here are few interesting concepts that are implemented in the JVM:

1. Encapsulation has two modes. Static and Dynamic. Static encapsulation is the regular encapsulation that enforces of accessing attributes of a java class e.g. access modifier provides capability of visibility whereas Runtime Encapsulation makes it sure the attributes are accessible by a class during runtime inside JVM. This Runtime Encapsulation is enforced by the classloader i.e. package friendly access modifier woudn't be honored if both of the classes are not loaded by the same classloader.

2. OxCAFEBABE is the firest 4 bytes of a java class file in byte code format

Resources:

http://www.artima.com/insidejvm/ed2/introarch.html - JVM Architecture online book

http://betterexplained.com/articles/understanding-big-and-little-endian-byte-order/

No comments: