Java AWT Interview Questions and Answers - 2

Question: 6

What are AWT peers?

A component is associated with a standard AWT button object, a peer object and an interfacing button object constructed per the native GUI.

Question: 7

What are the component and container class?

A component is a graphical object. A few examples of components are

Button

Canvas

Checkboc

Choice etc.

Question: 8

What interface is extended by AWT event listener?

The java.util.EventListener interface is extended by all the AWT event listeners.

Question: 9

What is paint method?

The AWT uses a Callback mechanism for painting which is the same for heavyweight and lightweight components.

Question: 10

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.

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES