Exercise Questions 7.31
22. Inter-thread communication is provided with the help of synchronization. A better tech-
nique is by using wait() and notify() commands. This feature is useful for passing
arguments between the threads.
Exercise Questions
Objective Questions
1. Which of the following statements are true in respect of errors and exceptions of Java?
(i) Exceptions occur at compile time
(ii) Logical errors can be detected by a compiler
(iii) Syntactical errors can be detected by a compiler
(iv) Bugs can be detected by a compiler
(a) i , ii, iii (b) iii (c) ii (d) ii, iii
2. Which of the following statements are true in respect of exceptions of Java?
(i) Synchronous exception cannot be predicted.
(ii) Asynchronous exceptions cannot ...