
Java Quiz - 1
Authored by Java Quizs
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
JDK, JRE and JVM are __________
platform-dependent
platform-independent
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Program{
public static void main(String[] args) {
System.out.println(null);
}
}
null
compilation error
runtime error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Quiz{
public static void main(String[] args) {
System.out.println((Object)null);
System.out.println((String)null);
}
}
null
null
null
Runtime error
Compilation error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following code, which expression displays the word "Equal"?
s1==s2
s1.matchCase(s2)
s1.equalsIgnoreCase(s2)
s1.equals(s2)
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Predict the output ?
Compilation error
abc
411
Runtime error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
JVM allocates default values for Instance variables?
true
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is it necessary to create objects to access local variables?
Yes
No
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?