when we write [javac abc.java] a bytecode is generated. AND THE BYTECODE CONTAINS INSTRUCTIONS FOR THE JVM and each instruction is 1 byte in length. NOW my question is where does the interpreter comes into action and what happens after the bytecode is generated.
I was told that interpreter produces the bytecode i.e. a set of instructions that JVM can execute and it is produced in all POSSIBLE FORMATS i.e. 16 bits, 32 bits,64 bits and so on, and then the processor choses the one that's suitible for it.
PLEASE EXPLAIN THIS WHOLE CONCEPT????? I M REALLY CONFUSED........

Each instruction are 1 byte in lenght but might be followed by bytes of data
iload 1
goto 38

does not produce in all format but the one of your JRE

http://en.wikipedia.org/wiki/Java_bytecode

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.