Advanced Java - Interview Questions and Answers


  1. What's new with the stop(), suspend() and resume() methods in JDK 1.2?
    The stop(), suspend() and resume() methods have been deprecated in JDK 1.2.
  2. Is null a keyword?
    The null is not a keyword.
  3. What is the preferred size of a component?
    The preferred size of a component is the minimum component size that will allow the component to display normally.
  4. What method is used to specify a container's layout?
    The setLayout() method is used to specify a container's layout.
  5. Which containers use a FlowLayout as their default layout?
    The Panel and Applet classes use the FlowLayout as their default layout.
  6. What state does a thread enter when it terminates its processing?
    When a thread terminates its processing, it enters the dead state.

« Prev   [ Page 2 of 31  Jump... Next »

Jump to page : 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |