Advertisment
XML developers used to rely on XML parsers to read XML files. They also used to rely on XML processors to transform XML to *ML (HTML, XML, etc.)....
The ability to save the JavaBean component state for long-term persistence within an XML document has been a topic of much discussion with Java...
Arrays are dynamically created objects in Java code. An array can hold a number of variables of the same type. The variables can be primitives or...
Now let's look at ways we can modify classes, methods, and variables. There are two kinds of modifiers -- access modifiers and non-access...
A constructor is used when creating an object from a class. The constructor name must match the name of the class and must not have a return type....
The flow control statements allow you to conditionally execute statements, to repeatedly execute a block of statements, or to just change the...
An assertion is a statement containing a boolean expression that is assumed to be true when the statement is executed. The system reports an...
Exceptions are Java objects; exception classes are derived from java.lang.Throwable.
A Java programmer does not have to worry about memory management, because it is automatically taken care of by the garbage collector. The Java...
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...