Java_ExceptionHandling

Java_ExceptionHandling

Professional Development

13 Qs

quiz-placeholder

Similar activities

TEST IA C (PROSES DELIVERY PARCEL)

TEST IA C (PROSES DELIVERY PARCEL)

Professional Development

14 Qs

JAVA S8 (DR LJK) 16.09.2020

JAVA S8 (DR LJK) 16.09.2020

Professional Development

10 Qs

PreTrainingExceptions

PreTrainingExceptions

Professional Development

10 Qs

PreTrainingScannerLoops

PreTrainingScannerLoops

Professional Development

10 Qs

PractiseQuiz2May2021

PractiseQuiz2May2021

Professional Development

15 Qs

Employee's Review

Employee's Review

Professional Development

18 Qs

day8

day8

Professional Development

10 Qs

Quizizz - Session 23 - File và làm việc với File

Quizizz - Session 23 - File và làm việc với File

Professional Development

15 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?