Test 1

Please enter your email:

1. The Parent class of the extensions in java is :

 
 
 
 

2. The two subclasses of Throwable are :

 
 
 
 

3. Which type of Exception does a sleep() method throw?

 
 
 
 

4. What are the two types of Exceptions available in java ?

 
 
 
 

5. Which state is entered once a thread is created ?

 
 
 
 

6. How Many Thread running at a time?

 
 
 
 

7. Which method is used to know the current state of the Thread:

 
 
 
 

8.

The life cycle of a thread in java is controlled by
 
 
 
 

9.

Execution of a java thread begins on which method call?
 
 
 
 

10.

How many ways a thread can be created in Java multithreading?
 
 
 
 

11.

Which method is used to make main thread to wait for all child threads
 
 
 
 

12.

Default value of a java thread is
 
 
 
 

13.

If a priority of a java thread is 3 then the default priority of its child thread will be
 
 
 
 

14.

Which method is used to check if a thread is running?
 
 
 
 

15.

Min and Max priority of a thread in Java multithreading are
 
 
 
 

16.

Which method we implement from Runnable interface?
 
 
 
 

17.

Which method is used to wait for child threads to finish in Java?
 
 
 
 

18.

Which will contain the body of the thread in Java?
 
 
 
 

19. Which package contains Thread classes and interfaces?

 
 
 
 

20. Which of the following interface is used to create a Thread?

 
 
 
 

21. Which class is used to create a Thread ?

 
 
 
 

22. Name the Exception thrown by the Read method defined in the Inputstream class :

 
 
 
 

23. What is the exception raised of the following codes:

String str = “123ABC”;

int a = Integer.parseInt(str);

 
 
 
 

24. when does exception in java arises in code :

 
 
 
 

25. Which of these keywords is not part of Exception handling:

 
 
 
 

26. Which Exception is thrown when divideĀ  by Zero statement executes as :

int a = 10/0;

 
 
 
 

27. Which of the following are not the methods of the Thread class?

 
 
 
 

28. What do you mean by chained exceptions in java?

 
 
 
 

29. When a Thread starts, which method is called automatically to run the Thread?

 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *