Java Tutorials


Literals in Java – Integral, Floating, Char, String, Boolean

1. Objective In this Java Literals tutorial, we are going to learn about literals in Java Programming Language. Moreover, we will discuss types of Java Literals: Integer, Floating-point, Char, String and Boolean Literals in Java with examples and many other things. So, let’s start with Literals in Java. 2. Literals in Java Java Literals are the constant values assigned to the variable. It is also called a constant. Java Literals Example – int x = 100; Here, 100 is literal. […]

Literals in Java

JDK vs JRE vs JVM

Difference Between JDK vs JRE vs JVM

1. Objective In this Java tutorial, we are going to study What is JDK (Java Development Kit), JRE (Java Runtime Environment) or Java RTE, and JVM (Java Virtual Machine). Moreover, we will discuss differences between JDK vs JRE vs JVM. At last, we see some functions of JDK and JRE and JVM. So, let us start Difference between JDK, JRE, and JVM. 2. Introduction to JDK vs JRE vs JVM Here, we will discuss the introduction to JDK vs JRE […]


Java Wildcard – Types of Wildcard in Java

1. Objective In this Java Wildcard tutorial, we are going to learn what is Java wildcard and how to use a wildcard in Java Programming Language. Moreover, we will discuss types of wildcard in Java: Upper bounded wildcards, Lower Bounded wildcards, and Unbounded Wildcards in Java with some example of Java wildcard. So, let’s start Java Wildcard. 2. What is Java Wildcard Wildcards in Java are basically the question mark used in generic programming, it basically represents the unknown type. Java Wildcard […]

Java Wildcard

Java Date and Time - Java Date Class

Java Date and Time – Java Date Class & GregorianCalendar Class

1. Java Date and Time – Objective In this Java Date and Time tutorial we are going to learn about the What is Java Date Class and Methods of Java Date Class. Moreover, we will discuss GregorianCalendar Class in Java Programming Language and how to get current date and time in java. At last, we will discuss examples of Java Date and time i.e. java.util. So, let us start Java Date and Time. 2.  Java Date Class Java Date class is available […]


Java Vs C++ | Difference between C++ and Java

1. Java vs C++ In this Java tutorial, we are going to study Comparision between Java vs C++, which is better. Moreover, we will discuss the major factors of the differences between C++ and Java Programming Language. So, let us start Java Vs C++. 2. What is Java vs C++ Both Java Programming Language and C++ are Object-Oriented Programming languages, yet there are contrasts between them. Regardless, Java is an OOP language; accordingly, everything is a protest in Java (single root […]

Java Vs C++ | Difference between C++ and Java

Identifiers in Java

Identifiers in Java – Rules & Example

1. Objective In this Java tutorial, we are going to study about the Identifiers in Java. Moreover, we will discuss rules for identifiers in Java. In addition, we saw how Java Identifiers are case sensitive and invalid & valid identifiers in Java Programming language. At last, we will discuss Java Identifier example and reserved words in Java. So, let’s start with Identifiers in Java. 2. Identifiers in Java Java Identifiers use to identify a class name, method or variable name […]


Java Extends vs Implements With Example Program

1. Java Extends vs Implements – Objective In this Java Extends vs Implements tutorial, we are going to learn about the difference between Java implements and Java extends. First of all, we will discuss what is Java implements and Java extends. Moreover, we will discuss Java Implements example and Java Extends example to learn the concept better. So, let’s start Java Extends vs Implements. 2. Difference Between Java Implements and Extends Java Extends: When you want to extend a subclass […]

Java Extends vs Implements

Autoboxing and Unboxing in Java

What is Autoboxing and Unboxing in Java with Example Program

1. Objective In this Autoboxing and unboxing in Java tutorial, we are going to learn about what is auto-boxing and unboxing in Java. In Addition, we will discuss examples of autoboxing and unboxing in Java. At last, we saw some advantages of autoboxing & unboxing in Java Programming. So, let us start. 2. Introduction to Java Autoboxing and Unboxing Autoboxing in Java: Converting a primitive datatype into a question of the relating wrapper class is called autoboxing in Java. For instance, […]


Object Creation in Java – Different Ways / Methods

1. Objective In this Object Creation in Java tutorial, we are going to study about how to create object in Java with example problem. In addition, we will discuss Object Creation in Java Programming Language with different ways/methods. So, let us start Object Creation in Java. 2. Object Creation in Java An object is created by a class in Java, a class is basically a blueprint for objects. There are many ways/methods to create object in Java. Let us study them. Let’s See Classes and […]

Object Creation in Java

Java Annotations - Examples & Types of Annotations in Java

Java Annotations – Examples & Types of Annotations in Java

1. Objective In our last tutorial, we saw Java Assertion in detail. In this Java Annotations tutorial, what is Java Annotation and list of annotations in Java Programming Language: Marker, Single Value, and Full Java Annotations. Moreover, we will discuss Predefined/ Standard Java Annotations or built-in annotations in Java: @Deprecated, @Override, @SuppressWarnings, @Documented, @Target, @Inherited, User-defined, and Custom Annotations in Java. At last, we discuss some Java annotation example. So, let’s start with Java Annotations 2. Java Annotations Java annotation is used to provide the extra or supplement information about the […]