Java Operating System
Date: Aug 2014
Level: Intermediate


INTERVIEW QUESTIONS

Company: Adobe
Question Title: Java Operating System
Language: Java
QUESTION DETAILS:

Java runs on a "virtual" stack machine inside JVM, which has instruction of size of one byte (called byte-codes). How many instructions/bytecodes potentially can such a machine have?
PICK ONE OF THE CHOICES
i) 256
ii) Unlimited
iii) 2^32 for 32-bit machines
iv) Depends on JVM version


256

There are 256 possible byte-long opcodes. Out of these, 198 are currently in use, 51 are reserved for future use, and 3 are set aside as permanently unimplemented.
All Questions