<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Date

What is the difference between Process and Thread?
What is the difference between Process and Thread? A process can contain multiple threads. In most multithreading operating systems, a process gets its own memory address space; a thread doesn't. Threads typically share the heap belonging to their parent process. For instance, a JVM runs in a single...
2012-06-18, 2263👍, 0💬

What is an IO filter?
What is an IO filter? An IO filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
2012-08-02, 2260👍, 0💬

What invokes a thread's run() method?
What invokes a thread's run() method? After a thread is started, via its start() method of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.
2012-06-14, 2260👍, 0💬

How are the elements of a BorderLayout organized?
How are the elements of a BorderLayout organized? The elements of a BorderLayout are organized at the borders (North, South, East, and West) and the center of a container.
2012-11-08, 2257👍, 0💬

When a thread blocks on I/O, what state does it enter?
When a thread blocks on I/O, what state does it enter? A thread enters the waiting state when it blocks on I/O.
2012-10-10, 2251👍, 0💬

Can a lock be acquired on a class?
Can a lock be acquired on a class? Yes, a lock can be acquired on a class. This lock is acquired on the class's Class object.
2012-06-05, 2251👍, 0💬

What is design by contract?
What is design by contract? The design by contract specifies the obligations of a method to any other methods that may use its services and also theirs to it. For example, the preconditions specify what the method required to be true when the method is called. Hence making sure that preconditions ar...
2012-08-15, 2249👍, 0💬

What would you use to compare two String variables - the operator == or the method equals()?
What would you use to compare two String variables - the operator == or the method equals()? I'd use the method equals() to compare the values of the Strings and the == to check if two variables point at the same instance of a String object.
2012-06-07, 2249👍, 0💬

Name the containers which uses Border Layout as their default layout?
Name the containers which uses Border Layout as their default layout? Containers which uses Border Layout as their default are: window, Frame and Dialog classes.
2012-05-21, 2247👍, 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, 2246👍, 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...
2012-06-26, 2244👍, 0💬

Name Component subclasses that support painting?
Name Component subclasses that support painting? The Canvas, Frame, Panel, and Applet classes support painting.
2012-06-26, 2243👍, 0💬

Is delete a keyword in Java?
Is delete a keyword in Java? No, delete is not a keyword in Java. Java does not make use of explicit destructors the way C++ does.
2013-06-26, 2238👍, 0💬

What restrictions are placed on the location of a package statement within a source code file?
What restrictions are placed on the location of a package statement within a source code file? A package statement must appear as the first line in a source code file (excluding blank lines and comments).
2012-10-02, 2237👍, 0💬

What do you understand by Synchronization?
What do you understand by Synchronization? Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modif...
2012-05-22, 2237👍, 0💬

What is the Vector class?
What is the Vector class? The Vector class provides the capability to implement a growable array of objects
2012-06-20, 2235👍, 0💬

What is the difference between interface and abstract class?
What is the difference between interface and abstract class? interface contains methods that must be abstract; abstract class may contain concrete methods. interface contains variables that must be static and final; abstract class may contain non-final and final variables. members in an interface ar...
2012-07-10, 2233👍, 0💬

What is a protected method?
What is a protected method? A protected method is a method that can be accessed by any method in its package and inherited by any subclass of its class.
2012-07-11, 2231👍, 0💬

How could Java classes direct program messages to the system console, but error messages, say to a file?
How could Java classes direct program messages to the system console, but error messages, say to a file? The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both point at the system console. This ho...
2012-05-18, 2231👍, 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-07-24, 2228👍, 0💬

What is the Properties class?
What is the Properties class? The properties class is a subclass of Hashtable that can be read from or written to a stream. It also provides the capability to specify a set of default values to be used.
2012-07-05, 2228👍, 0💬

What is the difference between yielding and sleeping?
What is the difference between yielding and sleeping? When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
2012-06-15, 2228👍, 0💬

What is the Locale class?
What is the Locale class? The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
2012-07-09, 2226👍, 0💬

What happens when a thread cannot acquire a lock on an object?
What happens when a thread cannot acquire a lock on an object? If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object's lock, it enters the waiting state until the lock becomes available.
2012-06-18, 2226👍, 0💬

<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Date