Exception Handling and Multithreading

Exception Handling and Multithreading

University

27 Qs

quiz-placeholder

Similar activities

Deadlines

Deadlines

12th Grade - University

24 Qs

Comprendre la réforme de la formation professionnelle

Comprendre la réforme de la formation professionnelle

University

23 Qs

Practica 1 Obstetricia III

Practica 1 Obstetricia III

University

23 Qs

Past Modals

Past Modals

9th Grade - Professional Development

25 Qs

CDI5CRIM-B ( Technical English) Long Quiz

CDI5CRIM-B ( Technical English) Long Quiz

University

25 Qs

BCS Systems & Architecture Quiz 4

BCS Systems & Architecture Quiz 4

University - Professional Development

24 Qs

Repàs 1

Repàs 1

University

22 Qs

AA ACC4201 Quiz 2

AA ACC4201 Quiz 2

University - Professional Development

22 Qs

Exception Handling and Multithreading

Exception Handling and Multithreading

Assessment

Quiz

Professional Development

University

Hard

Created by

Mrs KEERTHIKA

Used 3+ times

FREE Resource

AI

Enhance your content

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

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What should the return type of method where there is no return value?

String s=null;

NullPointerException

Handles Exception

ArithmeticException

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What causes the program to exit abruptly and hence its usage should be minimalistic?

Try

finally

Exit

catch

Answer explanation

In case of exit, the program exits abruptly hence would never be able to debug the root cause of the issue

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following causes memory leak?

Release database connection when querying is complete

Use Finally block as much as possible

Release instances stored in static tables

Not using Finally block often

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we execute multiple exceptions at a time

Yes

No

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of these is a super class of all exceptional type classes?

String

Runtime exceptions

Throwable

Cacheable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Match the following according to choices for the below code

1.try{

}

catch(Exception e){ }

2.try{

int a=100,b=0,c;

c=a/b;}

catch(ae){}

3.try{

int a[]=new int[10];

a[50]=100;}

catch(Aie)

4.NullPointerException

5.BufferedReader

3.Exception

5.ArithmeticException

4.ArrayIndexOutOfBoundsException

2.Strings=null

1.BufferedReader

2.Exception

3.ArithmeticException

4.ArrayIndexOutOfBoundsException

5.Strings=null

1.BufferedReader

1.Exception

3.ArithmeticException

5.ArrayIndexOutOfBoundsException

4.String s=null

2.BufferedReader

1.Exception

2.ArithmeticException

3.ArrayIndexOutOfBoundsException

4.String s=null

5.BufferedReader

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Java code?


  1. class exception_handling

  2. {

  3. public static void main(String args[])

  4. {

  5. try

  6. {

  7. System.out.print("Hello" + " " + 1 / 0);

  8. }

  9. finally

  10. {

  11. System.out.print("World");

  12. }

  13. }

  14. }

Hello

World

Compilation error

First Exception then World

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?