<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Date

What is the difference between a MenuItem and a CheckboxMenuItem?
What is the difference between a MenuItem and a CheckboxMenuItem? The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or unchecked.
2012-10-11, 2600👍, 0💬

What if I do not provide the String array as the argument to the method?
What if I do not provide the String array as the argument to the method? Program compiles but throws a runtime error "NoSuchMethodError".
2013-05-03, 2572👍, 0💬

What classes of exceptions may be caught by a catch clause?
What classes of exceptions may be caught by a catch clause? A catch clause can catch any exception that may be assigned to the Throwable type. This includes the Error and Exception types.
2012-07-18, 2561👍, 0💬

What is the purpose of the wait(), notify(), and notifyAll() methods?
What is the purpose of the wait(), notify(), and notifyAll() methods? The wait(),notify(), and notifyAll() methods are used to provide an efficient way for threads to communicate each other.
2012-06-14, 2552👍, 0💬

Can you call one constructor from another if a class has multiple constructors?
Can you call one constructor from another if a class has multiple constructors? Yes. Use this() syntax.
2012-09-06, 2547👍, 0💬

What is scalability and performance?
What is scalability and performance? Performance is a measure of "how fast can you perform this task." and scalability describes how an application behaves as its workload and available computing resources increase.
2012-08-16, 2538👍, 0💬

What are the high-level thread states?
What are the high-level thread states? The high-level thread states are ready, running, waiting, and dead.
2012-06-15, 2509👍, 0💬

What is the difference between preemptive scheduling and time slicing?
What is the difference between preemptive scheduling and time slicing? Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and the...
2013-06-20, 2508👍, 0💬

What is the purpose of the enableEvents() method?
What is the purpose of the enableEvents() method? The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding th...
2012-08-03, 2507👍, 0💬

What is an object's lock and which object's have locks?
What is an object's lock and which object's have locks? An object's lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object's lock. All objects and classes have loc...
2012-07-12, 2504👍, 0💬

Is exit a keyword in Java?
Is exit a keyword in Java? No. To exit a program explicitly you use exit method in System object.
2013-06-27, 2498👍, 0💬

How many methods in the Externalizable interface?
How many methods in the Externalizable interface? There are two methods in the Externalizable interface. You have to implement these two methods in order to make your class externalizable. These two methods are readExternal() and writeExternal().
2012-05-29, 2491👍, 0💬

How does Java handle integer overflows and underflows?
How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
2013-06-06, 2488👍, 0💬

What class is the top of the AWT event hierarchy?
What class is the top of the AWT event hierarchy? The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy.
2012-10-12, 2485👍, 0💬

What does a well-written OO program look like?
What does a well-written OO program look like? A well-written OO program exhibits recurring structures that promote abstraction, flexibility, modularity and elegance.
2012-05-15, 2482👍, 0💬

If I do not provide any arguments on the command line, then the String array of Main method will be empty or null?
If I do not provide any arguments on the command line, then the String array of Main method will be empty or null? It is empty. But not null.
2013-05-06, 2471👍, 0💬

What is the immediate superclass of the Applet class?
What is the immediate superclass of the Applet class? Panel
2012-10-03, 2467👍, 0💬

How are Observer and Observable used?
How are Observer and Observable used? Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated, it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by obj...
2012-05-31, 2465👍, 0💬

Can main method be declared final?
Can main method be declared final? Yes, the main method can be declared final, in addition to being public static.
2013-07-02, 2458👍, 0💬

What are wrapped classes?
What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
2012-06-25, 2454👍, 0💬

What is the numeric promotion?
What is the numeric promotion? Numeric promotion is used with both unary and binary bitwise operators. This means that byte, char, and short values are converted to int values before a bitwise operator is applied. If a binary bitwise operator has one long operand, the other operand is converted to a...
2012-07-02, 2450👍, 0💬

Does a class inherit the constructors of its superclass?
Does a class inherit the constructors of its superclass? A class does not inherit constructors from any of its superclasses.
2012-07-20, 2441👍, 0💬

What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class? Strategically speaking, threads created by implementing Runnable interface are more advisable. If you create a thread by extending a thread class, you cannot extend any other class. If you c...
2012-05-17, 2439👍, 0💬

Can you have virtual functions in Java?
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has on...
2012-05-16, 2437👍, 0💬

<< < 1 2 3 4 5 6 7 8 9 10 > >>   Sort: Date