Module-1: Object Oriented Programming Language Using Java
Module-1: Object Oriented Programming Language Using Java
Module-4
1) Where are the following four methods commonly used?
i. public void add(Component c)
ii. public void setSize(int width, int height)
iii. public void setLayout(LayoutManager m)
iv. public void setVisible(boolean)
A. Graphics class
B. Component class
C. Both A & B
D. None of the above
2) Give the abbreviation of AWT?
A. Applet Windowing Toolkit
B. Abstract Windowing Toolkit
C. Absolute Windowing Toolkit
D. None of the above
3) The Java Foundation Classes (JFC) is a set of GUI components which simplify the development of desktop
applications.
A. True
B. False
4) The Graphics class is the_____for all graphics contexts.
A. Main class
B. Abstract super class
C. Super class
D. Object class