What will be the result of invoking the wait() method on an object without ensuring that the current thread holds the lock of the object?

1.3 What will be the result of invoking the wait() method on an object without ensuring that the current thread holds the lock of the object?
A) The code will fail to compile.
B) Nothing special will happen.
C) An IllegalMonitorStateException will be thrown if the wait() method is called, while the current thread does not hold the lock of the object.
D) The thread will be blocked until it gains the lock of the object.

In UML diagram of a class

1.1 In UML diagram of a class
A) state of object cannot be represented
B) state is irrelevant
C) state is represented as an attribute
D) state is represented as a result of an operation

What is an Applet?

a) What is an Applet? Discuss the applet HTML tag with its required attributes with an example.