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........
arshi9464
-2
Light Poster
Recommended Answers
Jump to PostEach instruction are 1 byte in lenght but might be followed by bytes of data
iload 1
goto 38does not produce in all format but the one of your JRE
All 2 Replies
Reply to this topic
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.