Which one of these lists contains only Java programming language keywords?

JavaDemo1

Quiz
•
Computers
•
Professional Development
•
Medium
Shefali Arora
Used 6+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class, if, void, long, Int, continue
goto, instanceof, native, finally, default, throws
try, virtual, throw, final, volatile, transient
strictfp, constant, super, implements, do
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a valid keyword in java?
interface
string
Float
unsigned
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a valid declarations of a String?
String s2 = 'null';
String s1 = null;
String s3 = (String) 'abc';
String s4 = (String) '\ufeed';
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code:
class Test {
public static void main(String[] args) {
for(int i = 0; 1; i++) {
System.out.println("Hello");
break;
}
}
}
Prints Hello once
Prints Hello infinite times
Prints nothing
Compiler error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
class Test {
public static void main(String[] args) {
for(int i = 0; 1; i++) {
System.out.println("Hello");
break;
}
}
}
0
20
Compiler Error
Prints Nothing
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
class Main {
public static void main(String args[]) {
try {
throw 10;
}
catch(int e) {
System.out.println("Got the Exception " + e);
}
}
}
Got the Exception 10
Got the Exception 0
Compiler error
None of these
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following?
class Main{public static void main (String[] args) {
try
{
int x = 0;
int y = 5 / x;
}
catch (Exception e)
{
System.out.println("Exception");
}
catch (ArithmeticException ae)
{
System.out.println(" Arithmetic Exception");
}
System.out.println("finished");
}};
finished
Compilation error
Exception
Arithmetic exception
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Programacion Orientada a Objetos - Java

Quiz
•
Professional Development
12 questions
JDK,JRE,JIT & JVM MCQs

Quiz
•
Professional Development
20 questions
Java Quiz

Quiz
•
Professional Development
11 questions
JAVA QUIZ

Quiz
•
Professional Development
20 questions
VCE TalentNext-2021 Quiz-2

Quiz
•
Professional Development
17 questions
Java programming

Quiz
•
Professional Development
15 questions
DOT NET-SET1

Quiz
•
Professional Development
11 questions
Quiz Java cz1

Quiz
•
Professional Development
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade