Advertisment
An object is eligible for garbage collection when no live thread can access it. An object can become eligible for garbage collection in different...
Java technology allows you to use the finalize() method to do the necessary cleanup before the garbage collector removes the object from memory.
A package represents a group of classes.
An interface is like a public class that has only abstract and public methods. The variables declared in an interface are implicitly public,...
Keywords are reserved words that are predefined in the language.
Integer literals can be decimal, octal, or hexadecimal.
Understand assignment operators.
We can use the == operator to compare the values of primitive variables and determine if they are equal. However, if object reference variables are...
If the variable passed is a primitive, only a copy of the variable is actually passed to the method. So modifying the variable within the method...
Encapsulation is the concept of hiding the implementation details of a class and allowing access to the class through a public interface.
Polymorphism means 'any forms.' In object-oriented programming, it refers to the capability of objects to react differently to the same...
Threads are objects in the Java language.
List of available thread constructors.
List of available thread states.
List of important thread methods.
Every object in Java code has one lock, which is useful for ensuring that only one thread accesses critical code in the object at a time. This...
The Math class is final and all the methods defined in the Math class are static, which means you cannot inherit from the Math class and override...
As you know, Strings are objects in Java code. These objects, however, are immutable. That is, their value, once assigned, can never be changed.
Collections are objects used to group together and manipulate multiple data elements. They can dynamically grow and shrink, which is their...
An in-depth tutorial on coloring inked drawings in Flash, the quick and easy way!