
Java-QUIZ-PSGRK

Quiz
•
Computers
•
University
•
Hard
saranya pravin
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the advantage of Exception Handling?
To avoid abnormal termination of a program
To find out errors
To Debug program
None of these
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following key word is optional in Exception handling program?
try
catch
finally
throw
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the purpose of 'throw' keyword?
To Raise an exception explicitly
To Raise an exception implicitly
To create user defined exceptions
To create custom exceptions
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statements should be used to import Exception Class?
import java.io.*
import java.lang.*
import java.util.*
import java.lang.Exception.*
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Choose an exception if there's an attempt to divide number by zero...
int number = 89 / 0;
System.out.println("The answer is " + number);
ArithmeticException
NullPointerException
NumberFormatException
ArrayIndexOutOfBoundException
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
WHAT IS THE OUTPUT?
public class Foo
{
public static void main(String[] args)
{
try
{
return;
}
finally
{
System.out.println( "Finally" );
}
}
}
Finally
Compilation fails.
The code runs with no output
An exception is thrown at runtime.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which will contain the body of the thread in Java?
Start()
Run()
Main()
Execute()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Arrays

Quiz
•
University
10 questions
Overview of Java Web Development

Quiz
•
University
13 questions
CSE_A1_QUIZ 6(15-05-23)

Quiz
•
University
10 questions
Unidad 4 - Usando el Java API Library

Quiz
•
University
20 questions
Java Coding Questions

Quiz
•
University
20 questions
Java - Revisão I

Quiz
•
University
18 questions
Programming Fundamentals in java

Quiz
•
University
20 questions
Quiz Pengembangan Aplikasi Android

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University