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

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, 2510👍, 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, 2506👍, 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, 2499👍, 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, 2470👍, 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, 2456👍, 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, 2449👍, 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, 2446👍, 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, 2446👍, 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, 2444👍, 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, 2433👍, 0💬

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, 2428👍, 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, 2427👍, 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, 2421👍, 0💬

What will be the output of the following statement? System.out.println ("1" + 3);
What will be the output of the following statement? System.out.println ("1" + 3); It will print 13.
2013-07-03, 2406👍, 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, 2395👍, 0💬

What is the immediate superclass of the Applet class?
What is the immediate superclass of the Applet class? Panel
2012-10-03, 2393👍, 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, 2389👍, 0💬

What can go wrong if you replace &emp;&emp; with &emp; in the following code: String a=null; if (a!=null && a.length()&gt;10) {
What can go wrong if you replace &emp;&emp; with &emp; in the following code: String a=null; if (a!=null && a.length()&gt;10) {...} A single ampersand here would lead to a NullPointerException.
2012-06-19, 2389👍, 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, 2389👍, 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, 2386👍, 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, 2380👍, 0💬

What is the difference between the File and RandomAccessFile classes?
What is the difference between the File and RandomAccessFile classes? The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.
2013-01-08, 2379👍, 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, 2376👍, 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, 2373👍, 0💬

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