Wipro Training Exception Handling and JDBC

Wipro Training Exception Handling and JDBC

University

50 Qs

quiz-placeholder

Similar activities

UAS Geokomputasi

UAS Geokomputasi

University

45 Qs

Data Science IT D

Data Science IT D

University

50 Qs

C ,Python and DS Quiz

C ,Python and DS Quiz

University

50 Qs

QUIZ S1K0MS4T-3EJTD2024

QUIZ S1K0MS4T-3EJTD2024

University

50 Qs

Ôn giữa kì Nhập môn AI

Ôn giữa kì Nhập môn AI

University

52 Qs

Simulador de Sistemas Operativos

Simulador de Sistemas Operativos

University

49 Qs

Artificial Neural Networks Worksheet Questions (Grade 13)

Artificial Neural Networks Worksheet Questions (Grade 13)

University

50 Qs

SISTEM KONTROL

SISTEM KONTROL

University

45 Qs

Wipro Training Exception Handling and JDBC

Wipro Training Exception Handling and JDBC

Assessment

Quiz

Engineering

University

Practice Problem

Hard

Created by

Ms.Yatri Davda

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...

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which class is the superclass of all exceptions?

Error 

Throwable

Exception

RuntimeException

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to handle exceptions?

try

catch 

finally

All of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output?

try {

int a = 10 / 0;

} catch (ArithmeticException e) {

System.out.println("Divide by zero");

}

Compile-time error

Runtime error

Divide by zero

No output

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Can we catch multiple exceptions in a single catch block in Java 7+?

Yes

No

Only with checked exceptions

Only with RuntimeException

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is a checked exception?

ArithmeticException

NullPointerException

IOException

ArrayIndexOutOfBoundsException

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of finally block?

Handles exceptions

Executes only on error

Executes always

Optional block

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which block executes regardless of exception?

try

catch

throw

finally

Create a free account and access millions of resources

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?