NEW
Font size
WorksheetsA dig into Java Virtual Machine (JVM)
Total questions: 10
Worksheet time: 5mins
What is a virtual machine?
A program that takes abstract Assembly code, compile into machine code, and run it on host machine
A program that takes a source code from a high-level language and compile it to abstract Assembly code
A program that takes a source code from a high-level language and convert to another at same level-abstraction
A program that takes abstract Assembly code, convert it to a source code of a high-level language
Which of following programming languages does not run on a VM?
Java
F#
Rust
C#
What’s the actual name of JavaScript intermediate language?
Bytecode
Opcode
Common Intermediate Language (CIL)
Assembly
What is Oracle-defined-name of “javap”?
Java Class File Disassembler
Java Print
Java Compiler
Java Bytecode Viewer
How much space can a line of bytecode takes up to?
8 bits (1 byte)
16 bits (2 bytes)
24 bits (3 bytes)
32 bits (4 bytes)
How many slots does a “long” variable need in Stack and Constant Pool?
1 slot, 32 bits, 4 bytes
2 slots, 64 bits, 8 bytes
3 slots, 96 bits, 12 bytes
4 slots, 128 bits, 16 bytes
Which component of the JVM responsible to verify class files?
Class Loader
Memory Area
Execution Engine
Metaspace
Which of following is not part of the Stack Frame?
Local Variables
Operand Stack
Frame Data
Metaspace
Which of the following opcode is not defined in JavaSE specification?
iconst_3
istore_2
iload_1
iconst_7
Which opcode performs a method call on object that implementation is known at run time?
invokeinterface
invokespecial
invokevirtual
invokestatic
