Java Notes
Double Dimension Array in Java

A 2-D array or double dimension array is a continuous location in memory where elements of the same type (datatype) are stored. A 2-D array consists of rows and columns where an element is stored at the cross-section of row and column known as a location.
Read MoreImmutable Strings in Java

Strings are constant; their values cannot be changed after they are created. Because String objects are immutable they can be shared. String buffers support mutable strings.
Read MoreWhile Loop in Java

The while loop in Java runs as long as the given condition is true. while loop is an entry-controlled loop. That means decision whether the loop will run or not is taken at the beginning of the loop.
Read MoreFor Loop in Java

The for loop in Java runs for a fixed number of times. In other words, loop which executes a set of statements a fixed number of times is known as a for loop.
Read MoreSingle Dimension Array in Java

An array is a continuous location in memory where elements of the same type (datatype) are stored. An array consists of several locations, as defined, and are referenced by a common name.
Read MoreFunction Overloading in Java

Function/Method Overloading is the Polymorphic behaviour of OOP ( Objected Oriented Programming). When several functions with same name but different function signature are defined, the process is said to be function overloading.
Read MoreRecursive Function in Java

A function which calls itself is known as a recursive function. A recursive function has two cases: recursive case and base case.
Read MoreFunctions in Java

A function is named unit of program codes that can be called from anywhere in the class.
Read MoreJava Interface

An interface can be implemented by many classes and a class can implement multiple interfaces. All methods in an interface are automatically public and abstract.
Read MoreDynamic v/s Static Binding

In Java, member variables have static binding because Java does not allow for polymorphic behavior with member variables. That means if both the Animal class and the Dog class have a member variable with the same name, it's the base class version that is used.
Read More