Java Notes Notes

Java Notes

Double Dimension Array in Java

Double Dimension Array In Java Notes

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 More

Immutable Strings in Java

Immutable Strings In Java Notes

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 More

While Loop in Java

While Loop In Java Notes

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 More

For Loop in Java

For Loop In Java Notes

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 More

Single Dimension Array in Java

Single Dimension Array In Java Notes

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 More

Function Overloading in Java

Function Overloading In Java Notes

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 More

Recursive Function in Java

Recursive Function In Java Notes

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

Read More

Functions in Java

Functions In Java Notes

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

Read More

Java Interface

Java Interface Notes

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 More

Dynamic v/s Static Binding

Dynamic V/s Static Binding Notes

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