Abstract Window Toolkit (AWT) Interview Preparation Guide
Download PDF
Add New Question

AWT Interview Questions and Answers will guide us now that Abstract Window Toolkit (AWT) is Javas original platform-independent windowing, graphics, and user-interface widget toolkit. The AWT is now part of the Java Foundation Classes (JFC) - the standard API for providing a graphical user interface (GUI) for a Java program. Lean AWT or get preparation for the job of AWT with the help of this Abstract Window Toolkit (AWT) Interview Questions and Answers

41 AWT Questions and Answers:

1 :: What is java Swing?

Swing is a GUI toolkit for Java. It is one part of the Java Foundation Classes (JFC). Swing includes graphical user interface (GUI) widgets such as text boxes, buttons, split-panes, and tables.

Swing widgets provide more sophisticated GUI components than the earlier Abstract Window Toolkit. Since they are written in pure Java, they run the same on all platforms, unlike the AWT which is tied to the underlying platform's windowing system. Swing supports pluggable look and feel – not by using the native platform's facilities, but by roughly emulating them. This means you can get any supported look and feel on any platform. The disadvantage of lightweight components is slower execution. The advantage is uniform behavior on all platforms.
Post Your Answer

2 :: What is java AWT?

A AWT stands for Abstract Window Toolkit. AWT enables programmers to develop Java applications with GUI components, such as windows, and buttons. The Java Virtual Machine (JVM) is responsible for translating the AWT calls into the appropriate calls to the host operating system.
Post Your Answer

3 :: What is an event handler?

A An event handler is a part of a computer program created to tell the program how to act in response to a specific event.
Post Your Answer

4 :: What is java applet?

A Applet is a java program that runs inside a web browser.
Post Your Answer

5 :: What is source and listener?

A source is an object that generates an event. This occurs when the internal state of that object changes in some way. A listener is an object that is notified when an event occurs. It has two major requirements. First, it must have been registered with a source to receive notifications about specific event. Second, it must implement necessary methods to receive and process these notifications.
Post Your Answer

6 :: What is the difference between choice and list?

A Choice is displayed in a compact form 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.
Post Your Answer

7 :: What is a layout manager and what are different types of layout managers available?

A layout manager is an object that is used to organize components in a container. The different layouts are available are FlowLayout, BorderLayout, CardLayout, GridLayout , GridBagLayout, Boxlayout and SpringLayout
Post Your Answer

8 :: What are types of applets?

There are two different types of applets. Trusted Applets and Untrusted applets. Trusted Applets are applets with predefined security and Untrusted Applets are applets without any security.
Post Your Answer

9 :: What is the difference between the Font and FontMetrics classes?

The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object.
Post Your Answer

10 :: How can a GUI component handle its own events?

A component can handle its own events by implementing the required event-listener interface and adding itself as its own event listener.
Post Your Answer
Add New Question