30 Best Java Swing Interview Questions and Answers

List of top 30 most frequently asked java swing interview questions and answers pdf download free

Java Swing Interview Questions and Answers List

  1. What’s Java Swing?
  2. What is JFC?
  3. What is AWT?
  4. What are the differences between Swing and AWT?
  5. What are heavy weight components ?
  6. What is lightweight component?
  7. What is double buffering ?
  8. What is an event in Swing?
  9. What is an event handler in swing?
  10. What is a layout manager?
  11. What is clipping?
  12. Which containers use a border Layout as their default layout in swing?
  13. What is the preferred size of a component?
  14. What method is used to specify a container’s layout?
  15. Which containers use a FlowLayout as their default layout?
  16. Which method of the Component class is used to set the position and size of a component?
  17. What is the What is the difference between invokeAndWait() and invokeLater()?
  18. Why should any swing call back implementation execute quickly?
  19. What is an applet?
  20. What is the difference between applications and applets?
  21. Which method is used by the applet to recognize the height and width?
  22. When we should go for codebase in applet?
  23. What is the lifecycle of an applet?
  24. Which method is used for setting security in applets?
  25. What is an event and what are the models available for event handling?
  26. What are the advantages of the event-delegation model over the event-inheritance model?
  27. Can a class be it’s own event handler? Explain how to implement this?
  28. Why does JComponent have add() and remove() methods but Component does not?
  29. What is the relationship between clipping and repainting?
  30. What class is at the top of the AWT event hierarchy?

This entry was posted in Interview Questions. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *