-
Can a lock be acquired on a class
Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
-
-
-
-
Try Catch
Which design pattern is used in try catch?
-
What is the purpose of the Runtime class
The purpose of the Runtime class is to provide access to the Java runtime system.
-
How are commas used in the intialization and iteration parts of a for statement
Commas are used to separate multiple statements within the initialization and iterationparts of a for statement.
-
What is the purpose of the wait(), notify(), and notifyAll() methods
The wait(),notify(), and notifyAll() methods are used to provide an efficient way forthreads to wait for a shared resource. When a thread executes an object's wait() method, itenters the waiting state. It only enters the ready state after another thread invokes theobject's notify() or notifyAll() methods..
-
-
How are Observer and Observable used
Objects that subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of its observers tonotify the observers that it has changed state. The Observer interface is implemented byobjects that observe Observable objects.
-
-
-
-
-
-
-
JDBC Form Data
Can we represent data in the form of objects in JDBC? Explain
-
Mention 5 basic difference between Array List and Vector in Java Colletion FrameWork.
Vector is unsynchronized wheras ArrayList is synchronized.
-
-
Java Interview Questions
Ans