Category Archives

Abstraction in Java

Data Abstraction is the property by virtue of which only the essential details are displayed to the user.The trivial...

Abstraction in Java

Data Abstraction is the property by virtue of which only the essential details are displayed to the user.The trivial...

Encapsulation in Java

Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds...

Encapsulation in Java

Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds...

Inheritance in Java

Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in java by which one class is...

Inheritance in Java

Inheritance is an important pillar of OOP(Object-Oriented Programming). It is the mechanism in java by which one class is...

How to swap or exchange objects in Java?

How to swap objects in Java? Let’s say we have a class called “Car” with some attributes. And we...

How to swap or exchange objects in Java?

How to swap objects in Java? Let’s say we have a class called “Car” with some attributes. And we...

How are Java objects stored in memory?

In Java, all objects are dynamically allocated on Heap. This is different from C++ where objects can be allocated...

How are Java objects stored in memory?

In Java, all objects are dynamically allocated on Heap. This is different from C++ where objects can be allocated...

Classes and Objects in Java

Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A...

Classes and Objects in Java

Classes and Objects are basic concepts of Object Oriented Programming which revolve around the real life entities. Class A...

Sorting in Java

Arrays.Sort() works for arrays which can be of primitive data type also. // A sample Java program to demonstrate...

Sorting in Java

Arrays.Sort() works for arrays which can be of primitive data type also. // A sample Java program to demonstrate...

Binary Search in Java

There are two ways to do binary search in Java. Arrays.binarysearch() works for arrays which can be of primitive...

Binary Search in Java

There are two ways to do binary search in Java. Arrays.binarysearch() works for arrays which can be of primitive...

Currying Functions in Java with Examples

Function Currying is a concept of breaking a function with many arguments into many functions with single argument in...

Currying Functions in Java with Examples

Function Currying is a concept of breaking a function with many arguments into many functions with single argument in...

Using _ (underscore) as variable name in Java

The use of the variable name _ in any context is never encouraged. Latest versions of the Java reserve...

Using _ (underscore) as variable name in Java

The use of the variable name _ in any context is never encouraged. Latest versions of the Java reserve...