Java AWT Question and Answers

25. Which containers use a Border layout as their default layout?
 
  • Window
  • Frame and
  • Dialog classes use a Border Layout as their layout.
 
Your Name Your Email-ID
Your Answer
26. What is meant by controls?
 
  • Controls are components that allow a user to interact with your application.
 
Your Name Your Email-ID
Your Answer
27. What is the difference between choice and list?
 
  • A choice is displayed in a compact from that requires you to pull it down to see the list of available choices and only one item may be selected from a choice.
  • A list may be displayed in such a way that several list items are visible and it supports the selection of one or more list items.
 
Your Name Your Email-ID
Your Answer
28. What is the difference between a window and a frame?
  The Frame class extends Window to define a main application window that can have a menu bar.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 7 of 10