Java AWT Interview Questions and Answers - 1
Question: 1
What is the difference between a Swing and AWT components?
AWT components re heavy weight, whereas Swing components are lightweight.
Heavy weight components depend on the local windowing toolkit. For example, java.awt.Button is a heavy weight component, when it is running on the Java platform for Unix platform, it maps to a real Motif button.
Question: 2
What are the different types of controls in AWT?
The AWT supports the following types of controls:
Labels, Pushbuttons, Checkboxes, Choice lists, Lists, Scroll bars, Text components
These controls are subclasses of component
Question: 3
What is clipping?
Clipping is the process of confining paint operations to a limited area or shape.
Question: 4
What are the benefits of Swing over AWT?
Swing components are light weight.
We can have a pluggable look and feel feature which shows us how they appear in other platforms.
We can add images to Swing components. We have toolbars and tooltips in Swing.
Question: 5
What is the use of the window class?
The window class can be used to create a plain, bare bones window that does not have a border or menu.
The window class can also be used to display introduction or welcome screens.
7000+ Acronyms and Abbreviations Quiz Questions Pdf More
7000+ Question Tags Exercises with Answers Pdf More
7000+ TNPSC Group 4 Study Material Pdf free Download More
7000+ TNPSC Group 4 General English Question Paper with Answers More
7000+ Prepositions Exercises for Class 10 with Answers Pdf More
10+ Puzzles Questions for IBPS Clerk More
100+ Time and Distance Problems for Bank Exams Pdf More
200+ Business Objects Interview Questions and Answers More
Top 10,000+ Computer MCQs More
Top 150+ Windows Explorer MCQ Questions and Answers 2020-2021 More