Posts Tagged ‘jvm’

Java -Dis@$$emble

This material -> It would be helpful for java interview for sure (for Product company 🙂 ) .. Its bit lengthy, I will try to modify this material.. Even I hate to read big paragraph, first time I took some notes and created a simple doc..  I am glad to share this with you all..

Till now, I didn’t concern about the details of what happened to the source code when it’s run through the compiler. I would like to share my findings (behind the scene details).

Javap utility is used to disassemble java bytecode (ie binary format into readable format) .This utility is included in Jdk . (more…)

Read Full Post »

Java Virtual Machine:

Main purpose : To run the compiled Java code across different network with out any modification.

Jvm doesn’t know abt Java language, it accepts only particular format (.class).A class file contains Java virtual machine instructions (bytecode) and a symbol table  as well as ancillary information.It can also be used to run other languages other than java.For example , Ada source code can be compiled to java bytecode and it can be executed by JVM.JVM executes .class files ,by using interpreter to emulate the instruction set or by using Just-in-Time compiler(JIT). JIT will not interpret and its used in most JVM to achieve greater speed.

JIT will convert bytecode into native machine code , thus it will improve the performance as well as it will caches the results of translating blocks (so it avoid reevaluating each line or operand each time it is met)..

How JVM Works :
-> Class will be loaded using ClassLoader(it will find the binary representation of classes).. (more…)

Read Full Post »