<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Rank

How does multithreading take place on a computer with a single CPU?
How does multithreading take place on a computer with a single CPU? The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
2012-12-14, 2039👍, 0💬

Which Math method is used to calculate the absolute value of a number?
Which Math method is used to calculate the absolute value of a number? The abs() method is used to calculate absolute values.
2012-12-13, 1971👍, 0💬

Can an exception be rethrown?
Can an exception be rethrown? Yes, an exception can be rethrown.
2012-12-13, 1951👍, 0💬

What is the purpose of the File class?
What is the purpose of the File class? The File class is used to create objects that provide access to the files and directories of a local file system.
2012-12-12, 1953👍, 0💬

What is the difference between the paint() and repaint() methods?
What is the difference between the paint() and repaint() methods? The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
2012-12-12, 2004👍, 0💬

What is the difference between static and non-static variables?
What is the difference between static and non-static variables? A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.
2012-12-11, 1894👍, 0💬

What modifiers can be used with a local inner class?
What modifiers can be used with a local inner class? A local inner class may be final or abstract.
2012-12-11, 1962👍, 0💬

What is the Collection interface?
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 duplicates.
2012-12-10, 2033👍, 0💬

What advantage do Java's layout managers provide over traditional windowing systems?
What advantage do Java's layout managers provide over traditional windowing systems? 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 accommodate platfo...
2012-12-10, 1959👍, 0💬

How are the elements of a GridBagLayout organized?
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 sizes.
2012-12-07, 1994👍, 0💬

What is the difference between a while statement and a do statement?
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 alw...
2012-12-07, 1962👍, 0💬

How can a GUI component handle its own events?
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.
2012-12-06, 2222👍, 0💬

What event results from the clicking of a button?
What event results from the clicking of a button? The ActionEvent event is generated as the result of the clicking of a button.
2012-12-06, 2209👍, 0💬

What is the highest-level event class of the event-delegation model?
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 class hierarchy.
2012-12-05, 2395👍, 0💬

Is a class a subclass of itself?
Is a class a subclass of itself? A class is a subclass of itself.
2012-12-05, 2016👍, 0💬

What modifiers may be used with an interface declaration?
What modifiers may be used with an interface declaration? An interface may be declared as public or abstract.
2012-12-04, 2042👍, 0💬

What restrictions are placed on the values of each case of a switch statement?
What restrictions are placed on the values of each case 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.
2012-12-04, 2362👍, 0💬

What is the relationship between an event-listener interface and an event-adapter class?
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.
2012-12-03, 2100👍, 0💬

Is "abc" a primitive value?
Is "abc" a primitive value? The String literal "abc" is not a primitive value. It is a String object.
2012-12-03, 2288👍, 0💬

What is the relationship between clipping and repainting?
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.
2012-11-30, 2210👍, 0💬

Which class should you use to obtain design information about an object?
Which class should you use to obtain design information about an object? The Class class is used to obtain information about an object's design.
2012-11-30, 2033👍, 0💬

Name the eight primitive Java types.
Name the eight primitive Java types. The eight primitive types are byte, char, short, int, long, float, double, and boolean.
2012-11-29, 1967👍, 0💬

Is &&= a valid Java operator?
Is &&= a valid Java operator? No, it is not.
2012-11-29, 2017👍, 0💬

How are the elements of a CardLayout organized?
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.
2012-11-28, 1959👍, 0💬

<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Rank