Exception Handling in Java
As the programmer, you must know what constitutes a bad result, and what it means. It’s often awkward to work around the limitations of passing error values in the normal path ofRead More…
As the programmer, you must know what constitutes a bad result, and what it means. It’s often awkward to work around the limitations of passing error values in the normal path ofRead More…
You must have seen public, private and protected keywords while practising java programs, these are called access modifiers. An access modifier restricts the access of a class, constructor, data member and methodRead More…
An enum is a special type of data type which is basically a collection (set) of constants. In this tutorial we will learn how to use enums in Java and what areRead More…
Abstraction is a process where you show only “relevant” data and “hide” unnecessary details of an object from the user. For example, when you login to your bank account online, you enterRead More…
A class can be considered as a blueprint using which you can create as many objects as you like. For example, here we have a class Website that has two data members (also knownRead More…
If you find it hard to understand Abstraction and Encapsulation, do not worry as I have covered these topics in detail with examples in the next section of this guide. Abstraction EncapsulationRead More…
Object: is a bundle of data and its behaviour(often known as methods). Objects have two characteristics: They have states and behaviors. Examples of states and behaviors Example 1: Object: House State: Address, Color, Area Behavior: OpenRead More…
When JVM starts up, it creates a heap area which is known as runtime data area. This is where all the objects (instances of class) are stored. Since this area is limited,Read More…
An operator is a character that represents an action, for example + is an arithmetic operator that represents addition. Types of Operator in Java 1) Basic Arithmetic Operators 2) Assignment Operators 3) Auto-incrementRead More…
Data type defines the values that a variable can take, for example if a variable has int data type, it can only take integer values. In java we have two categories of dataRead More…