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

Which containers use a border layout as their default layout?
Which containers use a border layout as their default layout? The Window, Frame and Dialog classes use a border layout as their default layout.
2012-05-30, 2709👍, 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, 2691👍, 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, 2688👍, 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, 2664👍, 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, 2655👍, 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, 2652👍, 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, 2646👍, 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, 2636👍, 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, 2635👍, 0💬

What is the immediate superclass of the Applet class?
What is the immediate superclass of the Applet class? Panel
2012-10-03, 2615👍, 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, 2613👍, 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, 2605👍, 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, 2601👍, 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, 2593👍, 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, 2590👍, 0💬

What will be the default values of all the elements of an array defined as an instance variable?
What will be the default values of all the elements of an array defined as an instance variable? If the array is an array of primitive types, then all the elements of the array will be initialized to the default value corresponding to that primitive type. e.g. All the elements of an array of int wil...
2013-07-03, 2583👍, 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, 2580👍, 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, 2579👍, 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, 2573👍, 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, 2573👍, 0💬

What is the difference between throw and throws keywords?
What is the difference between throw and throws keywords? The throw keyword denotes a statement that causes an exception to be initiated. It takes the Exception object to be thrown as argument. The exception will be caught by an immediately encompassing try-catch construction or propagated further u...
2012-07-19, 2560👍, 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, 2555👍, 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, 2552👍, 0💬

What will be the initial value of an object reference which is defined as an instance variable?
What will be the initial value of an object reference which is defined as an instance variable? The object references are all initialized to null in Java. However in order to do anything useful with these references, you must set them to a valid object, else you will get NullPointerExceptions everyw...
2013-06-28, 2550👍, 0💬

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