What is the difference between a Window and a Frame?
The Frame class extends Window to define a main application window that can have a menu bar. Read more »
The Frame class extends Window to define a main application window that can have a menu bar. Read more »
During compilation, the values of each case of a switch statement must evaluate to a value that can be promoted to an int value. Read more »
The java.util.EventObject class is the highest-level class in the event-delegation class hierarchy. Read more »
this() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor. Read more »
An I/O 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. Read more »
A statement block is used to organize a sequence of statements as a single statement group. Read more »
A thread class may be declared as a subclass of Thread, or it may implement the Runnable interface. Read more »
Without layout managers, Java programmers are faced with determining how their GUI will be displayed across multiple windowing systems and finding a common sizing... Read more »
Java supports “low-level” and “high-level” classes. “Low-level” classes provide support for socket programming: Socket, DatagramSocket, and ServerSocket... Read more »
You should use the word synchronized to mark the critical section of code. You may also use other methods of thread synchronization (see wait(), notify(), notifyAll()... Read more »
Interfaces provide more sophisticated ways to organize and control the objects in your system. The interface keyword takes the abstract concept one step further.... Read more »
Java’s interface mechanism can be used to implement multiple inheritance, with one important difference from c++ way of doing MI: the inherited interfaces must... Read more »
A string buffer implements a mutable sequence of characters. A string buffer is like a String, but can be modified. At any point in time it contains some particular... Read more »
The Java runtime environment deletes objects when it determines that they are no longer being used. This process is known as garbage collection. The Java runtime... Read more »
The equals method can be considered to perform a deep comparison of the value of an object, whereas the == operator performs a shallow comparison. The equals() method... Read more »
Simply speaking a class or a method qualified with “abstract” keyword is an abstract class or abstract method. You create an abstract class when you want to... Read more »
Creating and implementing an interface would be the best way for this situation. Just create an interface with empty methods which forces a programmer to implement... Read more »
1. Applets can be embedded in HTML pages and downloaded over the Internet whereas Applications have no special support in HTML for embedding or downloading. 2. Applets... Read more »
Any time you use system calls specific to one operating system and do not create alternative calls for another operating system, your program will not function correctly. Solaris... Read more »
The vector container class generalizes the concept of an ordinary C array. Like an array, a vector is an indexed data structure, with index values that range from... Read more »