Explore topic-wise MCQs in General Principles .

This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your General Principles knowledge and support exam preparation. Choose a topic below to get started.

1.

Which class or interface defines the wait() , notify() ,and notifyAll() methods?

A. Object
B. Thread
C. Runnable
D. Class
Answer» B. Thread
2.

Which two of the following methods are defined in class Thread?

A. 1 and 4
B. 2 and 3
C. 3 and 4
D. 2 and 4
Answer» B. 2 and 3
3.

Which three guarantee that a thread will leave the running state?

A. 1, 2 and 4
B. 2, 5 and 6
C. 3, 4 and 7
D. 4, 5 and 7
Answer» C. 3, 4 and 7
4.

Which three are methods of the Object class?

A. 1, 2, 4
B. 2, 4, 5
C. 1, 2, 6
D. 2, 3, 4
Answer» D. 2, 3, 4
5.

Which two are valid constructors for Thread?

A. 1 and 3
B. 2 and 4
C. 1 and 2
D. 2 and 5
Answer» D. 2 and 5