Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. ...
Java - Character Class
Normally, when we work with characters, we use primitive data types char. Example: char ch = 'a'; // Unicode for uppercase Gre...
Java - Numbers Class
Normally, when we work with Numbers, we use primitive data types such as byte, int, long, double, etc. Example: int i = 5000; float g...
Java Decision Making
There are two types of decision making statements in Java. They are: if statements switch statements The if Statement: An if stateme...
Java Loops - for, while and do...while
There may be a situation when we need to execute a block of code several number of times, and is often referred to as a loop. Java has very...
Java Basic Operators
Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups: Arithmetic ...
Java Modifier Types
Modifiers are keywords that you add to those definitions to change their meanings. The Java language has a wide variety of modifiers, incl...
Java Variable Types
A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines th...
Java Basic Data Types
Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in ...
Java - Objects and Classes
Java is an Object-Oriented Language. As a language that has the Object Oriented feature, Java supports the following fundamental concepts:...
Java Basic Syntax
When we consider a Java program it can be defined as a collection of objects that communicate via invoking each other's methods. Let us...
Java Environment Setup
Try it Option Online You really do not need to set up your own environment to start learning Java programming language. Reason is very s...