Java_ExceptionHandling

Java_ExceptionHandling

Professional Development

13 Qs

quiz-placeholder

Similar activities

PractiseQuiz2May2021

PractiseQuiz2May2021

Professional Development

15 Qs

Java Collections

Java Collections

Professional Development

8 Qs

Multithreading

Multithreading

University - Professional Development

10 Qs

Führung

Führung

Professional Development

8 Qs

Google Display Network

Google Display Network

Professional Development

10 Qs

PCB e Linguagens

PCB e Linguagens

Professional Development

10 Qs

PreTrainingExceptions

PreTrainingExceptions

Professional Development

10 Qs

SCS-Day 2019 Quiz Contest

SCS-Day 2019 Quiz Contest

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?

Discover more resources for Professional Development