What is the purpose of the System class?
The purpose of the System class is to provide access to system resources.
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.
Is &&= a valid Java operator?
No, it is not.
Name the eight primitive Java types.
The eight primitive types are byte, char, short, int, long, float,
double, and boolean.
Which class should you use to obtain design information about an
The Class class is used to obtain information about an object's design.
What is the relationship between clipping and repainting?
When a window is repainted by the AWT painting thread, it sets the
clipping regions to the area of the window that requires repainting.
Is "abc" a primitive value?
The String literal "abc" is not a primitive value. It is a String object.
What is the relationship between an event-listener interface 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 event-listener interface.
What restrictions are placed on the values of each case of a switch
During compilation, the values of each case of a switch statement must
evaluate to a value that can be promoted to an int value.
What modifiers may be used with an interface declaration?
An interface may be declared as public or abstract.
Is a class a subclass of itself?
A class is a subclass of itself.
What is the highest-level event class of the event-delegation model?
The java.util.EventObject class is the highest-level class in the event-delegation
What event results from the clicking of a button?
The ActionEvent event is generated as the result of the clicking of
How can a GUI component handle its own events?
A component can handle its own events by implementing the required
event-listener interface and adding itself as its own event listener.
What is the difference between a while statement and a do statement?
A while statement checks at the beginning of a loop to see whether
the next loop iteration should occur. A do statement checks at the end
of a loop to see whether the next iteration of a loop should occur. The
do statement will always execute the body of a loop at least once.
How are the elements of a GridBagLayout organized?
The elements of a GridBagLayout are organized according to a grid.
However, the elements are of different sizes and may occupy more than one
row or column of the grid. In addition, the rows and columns may have different
What advantage do Java's layout managers provide over traditional
Java uses layout managers to lay out components in a consistent manner
across all windowing platforms. Since Java's layout managers aren't tied
to absolute sizing and positioning, they are able to accomodate platform-specific
differences among windowing systems.
What is the Collection interface?
The Collection interface provides support for the implementation of
a mathematical bag - an unordered collection of objects that may contain
What modifiers can be used with a local inner class?
A local inner class may be final or abstract.
More Java Questions
Do you have a Java Problem?
Ask It in The Java
Certification, Programming, JavaBean and Object Oriented Reference Books
Return to : Java
Programming Hints and Tips
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
The site www.erpgreat.com is not affiliated with or endorsed
by any company listed at this site.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.erpgreat.com or the content authors.