Ajp Test Paper 1
Ajp Test Paper 1
Roll No
1. Which class can be used to represent the Checkbox with a textual label that can appear in a menu?
A. MenuBar B. MenuItem
C. CheckboxMenuItem D. Menu
17. How will you assign the string and icon both to the JButton?
A. It is not possible B. Use the setTextIcon( ) method
C. Use the setIconText( ) method D. Intialize them directly in the constructor
19. The concept of the menu bar canbe implemented by using three java classes—
A. MenuBar B. Menu
C. MenuItem D. All of these