Java AWT Interview Questions and Answers - 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.
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
What is clipping?
Clipping is the process of confining paint operations to a limited area or shape.
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.
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.
Structural Organisation Gk More
Biodiversity Questions and Answers Pdf More
BioDiversity Gk More
100+ Science General Knowledge Question Answers More
Biology Questions and Answers for High Schools Pdf More
Indian Sports Quiz Questions and Answers More
Synonyms and Antonyms Quiz for High School More
Important Days Online Test 2019-2020 More
Computer Gk | MCQs| Quiz | Online Test | Mock Test | Quesion Papers Pdf More
International Trophies and Cups Quiz Questions More