Java Basics

Comments in Java

In this tutorial, we will learn about Comments in Java. Comments are not used to perform any function in the program but they are really useful for developers. Developers can write comments with variables and Methods to remember their working (purpose) in the program. One important thing to mention comments doesn’t put any impact on …

Comments in Java Read More »

String in Java

In this tutorial, we will learn about String in Java. Some students think String is a primitive data type like int or char but In java String is a very smart and immutable class which is part of java.lang package. When we right a char sequence it represents the object of String class. Check the …

String in Java Read More »

Scanner class in Java

In this tutorial, we will learn about Scanner Class in Java. Scanner class in Java is used to get input from users as we use scanf() in C language. Scanner class is a predefined class in java which is present in java.util package. It means we have to import this package to use Scanner class in …

Scanner class in Java Read More »

Keywords in Java

In this tutorial, we will learn about Keywords in Java. Java provides a wide range of keywords to us. Every keyword has some special meaning in Java. We can not use any keyword as class name or as a variable name. All keywords have some predefined meaning which Java compiler knows very well for example …

Keywords in Java Read More »

Operators in Java

In this tutorial, we will learn about Operators in Java. Operators are special symbols that we use to perform special operations like the addition of two numbers. Java provides us with a wide range of operators which help us to perform special operations. In Java, all the operators are divided into different categories All the …

Operators in Java Read More »

Introduction to Java

In this tutorial, we will learn Introduction to Java. Java is an object-oriented programming language. Java language was developed by James Gosling at Sun Microsystems Inc. In starting they were thinking to name this language Oak, But this name was already registered by another company so they named it Java. Java is a breed of …

Introduction to Java Read More »