Comparison between JDK, JRE and JVM

This post contains the difference between JDK, JRE, and JVM. Let’s understand the difference between them first.JVM: Java Virtual MachineJDK: Java Development KitJRE: Java Runtime Environment Comparison between JDK, JRE, and JVM JDK It stands for Java Development Kit. It is the tool necessary to compile, document and package Java programs. It contains JRE + … Read more

Java – Basic Syntax

The syntax of the Java programming language is the set of rules for writing the java programs and defining its interpretation. Java program is the collection of classes and objects that communicate with each other via. method. It is the program structure. There are certain features that are omitted such as operator overloading or unsigned integer types, also there … Read more

Java Introduction

Java is a popular general-purpose, high level, modern programming language, and computing platform. It is fast, reliable, secure, and dynamic, with the ability to fit the needs of virtually any type of application. It is Platform Independent, which means the user only needs to write a program once and it can be run on a … Read more

Java – this Keyword

In Java, this is a reference variable, this can be used inside any method or constructor to refer to the current object. Following demonstrating the use of this Use of this Keyword in constructor: Output: Name: Daniel marks:90 Note: that, Java does not allow to declare two local variables with the same name inside the same or … Read more

Java – StringBuffer

StringBuffer and StringBuilder in java is a class that provides the mutable(changeable) ability.Since a String is immutable that is its value cannot be changed once the object is created. So to modify the String, StringBuffer and StringBuilder class is used. Both these classes work fine but the difference is that the StringBuffer is thread-safe whereas … Read more

Java – What is Static and Dynamic Binding?

The Association of the method call to the method body is known as binding. There are two types of binding in java: Static binding. Dynamic bindinng. 1. Static Binding or Early Binding in Java: The binding that resolved at compile time is known as Static Binding or Early Binding. There are three methods that cannot … Read more

Java – Strings

A string is defined as a series of characters or an array of characters in java. They are present within the double quote. Create a String: One way to create a String is to directly declare it within the double quote that is by String Literal: Like any other object, it is possible to create … Read more

Java – Decision Making Statements

The decision-making statement in Java is used when the user wants a specific block of code to be executed when the given condition is fulfilled. Java programming language provides the following types of decision-making statements: if statement  if-else statement  nested-if statement  if-else-if ladder statement  switch-case statement  if statement Among the decision making statements, it is … Read more

Java Virtual Machine (JVM), JDK, JRE

In this article, we learn all about JVM and its architecture and also we will compare JDK, JRE, and JVM with important points required. What is JVM? JVM stands for Java Virtual Machine, which is an abstract machine that provides a run-time environment to run Java programs. It converts Java byte-code into machine language, so not … Read more