JAVA

Method overriding

In Java it is possible to define  two or more methods within the same class that share the same name, as long as their parameter declarations are different. When...

The finalize() method

Sometimes an object will need to perform some action when it is destroyed. For example, if an object is holding some non-Java resource such as a file handle or...

Garbage collection

Since objects are dynamically allocated by using the new operator, you might be wondering how such objects are destroyed and their memory released for later reallocation. In some languages,...

Constructors in java

A constructor initializes an object immediately upon creation. It has the same name as the class  in which it resides and is  syntactically similar to a method. Once defined,...

Characteristics of JAVA

Java is  simple,  object-  oriented,  distributed,  interpreted,  robust,  secure,  architecture-neutral,  portable,  high-performance,  multithreaded, and  dynamic. 1  Java Is Simple:: No language is simple, but Java is a bit easier...