Java_ExceptionHandling

Java_ExceptionHandling

Professional Development

13 Qs

quiz-placeholder

Similar activities

Employee's Review

Employee's Review

Professional Development

18 Qs

day8

day8

Professional Development

10 Qs

Slow Pitch Matters

Slow Pitch Matters

Professional Development

10 Qs

JAVA S8 (DR LJK) 16.09.2020

JAVA S8 (DR LJK) 16.09.2020

Professional Development

10 Qs

Talent Next Quiz-5

Talent Next Quiz-5

Professional Development

10 Qs

Java Collections

Java Collections

Professional Development

14 Qs

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 Qs

Tally Prime Quiz 3

Tally Prime Quiz 3

Professional Development

10 Qs

Java_ExceptionHandling

Java_ExceptionHandling

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

kowshika arumugham

Used 2+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?