Java Enum Example | Enumeration | String | Constructor and Methods

A Java Enum is a special data type, Where this data type has a group of predefined constants variables. A Variable has a predefined value (unchangeable variables, like final variables). For example A days in a week – Mon, Tus…etc. The direction in earth North, East, West, and South. That both are predefined equal value for variables. It’s used Read More…


Java instanceof | Comparison Operator with How to use example

The Java instanceof operator used to check the object is an instance of the specified type (class or subclass or interface). When you using the Instnaceof operator for comparison then it will return a boolean value either Ture or False. Java instanceof Operator also known as a Comparison Operator. Because it compares the instance with Read More…


Java implements | Interface | keyword | Example code

Java Implements keyword is for implementing an interface. This keyword comes to solve Multiple Inheritance problems in java. If you want a inherit many classes by a single one, this is not possible with extends the class.  You need to define an Interface and then use Java Implements to inherit multiple Interface properties. In this tutorial we will learn about Java Read More…


Java Extends class | Interface | Keyword | Multiple class Example

Java extends keyword is used in Java Inheritance. When one class wants to inherit the property of another class or one interface inherits the property of another interface, that time java code used a extends keyword. It’s a very important keyword in java programming. In this tutorial, we will learn about the Java Extends class and Interface Read More…


Type Casting in Java | conversion | Variable | Examples

What is Type Casting in Java? Typecasting is in the Programming world used to convert objects or variables of one type into another. When we are converting or assigning one data type to another they might not compatible. If it is suitable then it will do smoothly otherwise chances of data loss. In this Tutorial we will learn about type Read More…


Java Downcasting | Java Upcasting | Casting objects & Difference with Examples

What is Java Casting?   A casting means in the programming world taking one object and “turning it into” another object type without changing its values. When Talking about casting in Java it can do on Variables and Object. In Object there are further two types One is Java Downcasting and the second is Java Upcasting. Read More…