Set - 4

Question 21 :

Can a lock be acquired on a class?

Answer :

Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.


Question 22 :

What's new with the stop(), suspend() and resume() methods in JDK 1.2?

Answer :

The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.


Question 23 :

Is null a keyword?

Answer :

The null value is not a keyword.


Question 24 :

What is the preferred size of a component?

Answer :

The preferred size of a component is the minimum component size that will allow the component to display normally.


Question 25 :

What method is used to specify a container's layout?

Answer :

The setLayout() method is used to specify a container's layout.