Java_ExceptionHandling

Java_ExceptionHandling

Professional Development

13 Qs

quiz-placeholder

Similar activities

DIRBS-1

DIRBS-1

Professional Development

10 Qs

AJHA Battle of Thrones- June 29, 2021

AJHA Battle of Thrones- June 29, 2021

Professional Development

15 Qs

Ch.6 – The Measurement Perspective  on Decision Usefulness(MPDU

Ch.6 – The Measurement Perspective on Decision Usefulness (MPDU

KG - Professional Development

11 Qs

Compostaje del alperujo

Compostaje del alperujo

Professional Development

15 Qs

Nghiệp vụ lễ tân G2 - Chương 1

Nghiệp vụ lễ tân G2 - Chương 1

Professional Development

15 Qs

Latsar 23 WOG v.3

Latsar 23 WOG v.3

Professional Development

15 Qs

KUALIMA GATHERING

KUALIMA GATHERING

Professional Development

10 Qs

Java Lab6

Java Lab6

Professional Development

10 Qs

Java_ExceptionHandling

Java_ExceptionHandling

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

kowshika arumugham

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Which of the following key word is optional in Exception handling program

try

finally

catch

throw

3.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Exception classes belongs to following package

import java.io.*

import java.lang.*

import java.util.*

import java.lang.Exception.*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default behavior of an uncaught exception in Java

Program terminates abruptly

Exception is ignored

Program continues execution

Exception is logged

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose an exception if attempt to divide number by zero

int number = 89 / 0;

System.out.println("The answer is " + number);

ArithmeticException

NullPointerException

NumberFormatException

ArrayIndexOutOfBoundException

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the CORRECT exception

String department="JTMK";

Integer no=Integer.parseInt(department);

ArithmeticException

NullPointerException

NumberFormatException

ArrayIndexOutOfBoundException

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Professional Development