NEW
Font size
Worksheetsclass ,objects,variables & methods
Total questions: 25
Worksheet time: 18mins
Java is a
Procedure Oriented Language
Structure Oriented Language
Object Oriented Language
Machine Language
Compiler Error
20
nothing prints
JRE stands for
Java Run Environment
Java Run Execution
Java Runtime Environment
Java Ready Execution
predict the output
area is 25
compile time error due to static methods called in non static method
runtime error
nothing prints
compile time error: static methods must be void only
25
nothing prints
which of the these variables allowed in java.
Local Variables
Instance Variables
Static Variables
All the above
none of the above
compile time error : print() used instead of println()
you are in placement training
"you are in placement training"
what is the extension of the bytecode files in java?
.java
.bytecode
.objectcode
.class
1,2
2,3
1,2,3
1,2,3,4
Which of the following is true?
java uses only interpreter
java uses only compiler
java uses both interpreter and compiler
none of the above
prints hai
nothing prints
compile time error
none of the above
Command to compile Java program
javax
java
javac
javay
predict the output
10
25
10 25
25 10
JDK stands for
Java Developer Kit
Java Development Kit
Java Design Kit
Java Debugging Kit
predict output
10
5
error
System.out.println("hai"+10);
in the above print statement '+' is a
arithmetic operator
concatenation operator
none of the above
At the end of this fragment of code what is r1.count value?
10
-5
6
7
8
sum is 1020
sum is 30
airthmetic error
40
30
20
10
-10
10
error
predict output
Could not find or load main class sample
Could not find or load main class Hai
printed Hai
file name class name must me same
good afternoon
good afternoon
good morning
compile time error
good morning
good afternoon
midday
compile time error
midday
good morning
midday
good afternoon
good morning
midday
compile time error
midday
good morning
midday
good afternoon
good morning
midday
nothing prints
midday
good morning
midday
good afternoon
good morning
