Category: 01. Tutorial
-
Java If-else Statement
The Java if statement is used to test the condition. It checks boolean condition: true or false. There are various types of if statement in Java. Java if Statement The Java if statement tests the condition. It executes the if block if condition is true. Syntax: Example: Output: Java if-else Statement The Java if-else statement also tests the condition. It executes the if block if condition is…
-
Java Keywords
Java keywords are also known as reserved words. Keywords are particular words that act as a key to a code. These are predefined words by Java so they cannot be used as a variable or object name or class name. List of Java Keywords A list of Java keywords or reserved words are given below:
-
Operators in Java
Operator in Java is a symbol that is used to perform operations. For example: +, -, *, / etc. There are many types of operators in Java which are given below: Java Operator Precedence Operator Type Category Precedence Unary postfix expr++ expr– prefix ++expr –expr +expr -expr ~ ! Arithmetic multiplicative * / % additive + – Shift shift << >> >>> Relational…
-
Unicode System
Unicode is a universal international standard character encoding that is capable of representing most of the world’s written languages. Why java uses Unicode System? Before Unicode, there were many language standards: ASCII (American Standard Code for Information Interchange) for the United States.ISO 8859-1 for Western European Language.KOI-8 for Russian.GB18030 and BIG-5 for chinese, and so on. Problem This caused…
-
Data Types in Java
Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java: Java Primitive Data Types In Java language, primitive data types are the building blocks of data manipulation. These are the most basic data types available in Java language. Java is a statically-typed…
-
Java Variables
A variable is a container which holds the value while the Java program is executed. A variable is assigned with a data type. Variable is a name of memory location. There are three types of variables in java: local, instance and static. There are two types of data types in Java: primitive and non-primitive. Variable A variable is…
-
JVM (Java Virtual Machine) Architecture
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. JVMs are available for many hardware and software platforms (i.e. JVM is platform dependent). What is JVM It is: What it does The JVM performs following operation: JVM provides definitions for the:…
-
Difference between JDK, JRE, and JVM
We must understand the differences between JDK, JRE, and JVM before proceeding further to Java. See the brief overview of JVM here. If you want to get the detailed knowledge of Java Virtual Machine, move to the next page. Firstly, let’s see the differences between the JDK, JRE, and JVM. JVM JVM (Java Virtual Machine) is…
-
How to set path in Java
The path is required to be set for using tools such as javac, java, etc. If you are saving the Java source file inside the JDK/bin directory, the path is not required to be set because all the tools will be available in the current directory. However, if you have your Java file outside the…
-
Internal Details of Hello Java Program
In the previous section, we have created Java Hello World program and learn how to compile and run a Java program. In this section, we are going to learn, what happens while we compile and run the Java program. Moreover, we will see some questions based on the first program. What happens at compile time?…