COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these methods is a part of Abstract Window Toolkit (AWT)?
A
display()
B
paint()
C
drawString()
D
transient()
Explanation: 

Detailed explanation-1: -3. Which of these methods is a part of Abstract Window Toolkit (AWT) ? Explanation: paint() is an abstract method defined in AWT.

Detailed explanation-2: -The abstract class Component is the root of all AWT components. A user interface object such as a button or a scrollbar is called, in AWT terminology, a component. Methods of this class include paint( Graphics g), update(). Some components fire events when a user interacts with the components.

Detailed explanation-3: -The AWT provides nine basic non-container component classes from which a user interface may be constructed. (Of course, new component classes may be derived from any of these or from class Component itself.) These nine classes are class Button, Canvas, Checkbox, Choice, Label, List, Scrollbar, TextArea, and TextField.

There is 1 question to complete.