Q121. What is the purpose
of the System class?
The purpose of the System class is to provide access to system resources.
Q122. Which TextComponent method is used to set aTextComponent to the read-only state?
setEditable()
Q123. How are the elements of a CardLayout organized?
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
Q124. Is &&= a valid Java operator?
No, it is not.
Q125. Name the eight primitive Java types?
The eight primitive types are byte, char, short, int, long, float, double, and boolean.
Q126. Which class should you use to obtain designinformation about an object?
The Class class is used to obtain information about an object's design.
Q127. What is the relationship between clipping andrepainting?
When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.
Q128. Is "abc" a primitive value?
The String literal "abc" is not a primitive value. It is a String object.
Q129. What is the relationship between an event-listenerinterface and an event-adapter class?
An event-listener interface defines the methods that must be implemented by an event handler for a particular kind of event. An event adapter provides a default implementation of an eventlistener interface.
Q130. What restrictions are placed on the values of eachcase of a switch statement?
During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.
The purpose of the System class is to provide access to system resources.
Q122. Which TextComponent method is used to set aTextComponent to the read-only state?
setEditable()
Q123. How are the elements of a CardLayout organized?
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
Q124. Is &&= a valid Java operator?
No, it is not.
Q125. Name the eight primitive Java types?
The eight primitive types are byte, char, short, int, long, float, double, and boolean.
Q126. Which class should you use to obtain designinformation about an object?
The Class class is used to obtain information about an object's design.
Q127. What is the relationship between clipping andrepainting?
When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.
Q128. Is "abc" a primitive value?
The String literal "abc" is not a primitive value. It is a String object.
Q129. What is the relationship between an event-listenerinterface and an event-adapter class?
An event-listener interface defines the methods that must be implemented by an event handler for a particular kind of event. An event adapter provides a default implementation of an eventlistener interface.
Q130. What restrictions are placed on the values of eachcase of a switch statement?
During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value.
No comments:
Post a Comment