WorksheetsJava JVM JDK
Total questions: 42
Worksheet time: 21mins
Which component is used to compile, debug and execute java program?
JVM
JDK
JRE
JIT
Which component is responsible for converting bytecode into machine specific code
JVM
JDK
JRE
JIT
Which component is responsible to run java program
JVM
JDK
JRE
JIT
What is the extension of compiled java classes
.classs
.java
.txt
.js
What is use of interpreter
They convert bytecode to machine language code
They read high level code and execute them
They are intermediated between JIT and JVM
It is a synonym for JIT
Which of the following option leads to the portability and security of Java?
Bytecode is executed by JVM
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Use of pointers
Object-oriented
_____ is used to find and fix bugs in the Java programs.
JVM
JRE
JDK
JDB
Which of the following tool is used to generate API documentation in HTML format from doc comments in source code?
javap tool
javaw command
Javadoc tool
javah command
Java is ______________________
Object based
Object Oriented
fully object oriented
procedural
Java was developed by
James gosling
John gosling
James frank
John frank
JDK stands for (a)
JVM stands for (a)
List out oops concept.
Int data types represents _______ bits.
8
16
32
64
There are (a) types of data types.
(a) is a piece of memory that can contain a data value.
How many types of array?
1
2
3
4
List out types of inheritance.
Single
Mulitple
Multi level
Hierarchy
Which one of the following is escape sequences?
\r
\n
\f
\t
Which is the portability and security cause in Java?
The applet makes the Java code secure and portable
Bytecode is executed by JVM
handling Dynamic binding between objects
Use of exception
Which of the following is not a Java features?
Dynamic
Architecture Neutral
Object-oriented
Use of pointers
Which component is responsible to run java program?
JVM
JDK
JIT
JRE
What is the extension of java code files?
.class
.txt
.java
.js
Converting real world objects in terms of class in java?
Polymorphism
Encapsulation
Abstraction
Inheritance
1. class main_class
2. {
3. public static void main(String args[])
4. {
5. int y = 10;
6. if (y == 10)
7. {
8. int y = 11;
9. System.out.println(y);
10. }
11. }
12. }
Compilation error
10
11
Run time error
class KIET_Test {
int x;
}
class Main {
public static void main(String args[]) {
KIET_Test t = new KIET_Test();
System.out.println(t.x);
}
}
garbage value
0
compiler error
runtime error
Which of the following is a valid declaration of an object of class Box?
Box obj = new Box;
Box obj = new Box();
obj = new Box();
new Box obj;
Which of these operators is used to allocate memory for an object?
malloc
alloc
new
this
Which of the below is/are valid identifier with the main method?
public
private
static
this
Which component is used to compile, debug and execute java program?
JVM
JDK
JIT
JRE
Which component is responsible for converting bytecode into machine specific code?
JVM
JDK
JIT
JRE
Which component is responsible to run java program?
JRE
JVM
JIT
JDK
Which component is responsible to optimize bytecode to machine code?
JRE
JVM
JDK
JIT
Which statement is true about java?
Sequence dependent programming language
Code dependent programming language
Platform independent programming language
Platform dependent programming language
JVM is _____
code dependent
code independent
platform dependent
platform independent
What is the extension of compiled java classes?
.class
.js
.txt
.java
Which of the following option leads to the portability and security of Java?
The applet makes the Java code secure and portable
Use of exception handling
Dynamic binding between objects
Bytecode is executed by JVM
Which of the following is not a Java features?
Architecture Neutral
Dynamic
Use of pointers
Object-oriented
In which memory a String is stored, when we create a string using new operator?
Stack
String memory
Random storage space
Heap memory
correct execution process in Java
load->edit->compile->verify->execute
edit->load->compile->execute->verify
edit->compile->load->verify->execute
verify->edit->compile->load->execute
JVM full form___
Java Visual Model
Java Virtual Model
Java Visual Machine
Java Virtual Machine
