Popular Post: Java

Java Introduction

Java is a programming language created by James Gosling from Sun Microsystems in 1991. Java is a high level, robust, object-oriented and secure programming language.

Syntax in Java.

Java Syntax is a collection of objects, and these objects and methods are use to write programs that the compiler and computer understands.

Comments in Java.

In Java, comments can be used to explain Java code. In Java there are three types of comments - Single line comments, Multi line comments, Documentation comments.

Variables in Java.

The Java programming language defines the following kinds of variables: local variable, instance variable, static variable.

Data types in Java

In Java, There are two types of data types (Primitive data types, Non-primitive data types). Data types specify the sizes and values that can be stored in the variable.

type Casting in Java.

In Java, The process of converting the value of one data type int, float, double etc. to another data type in both ways manually and automatically is known as typecasting.

Operators in Java.

In Java, Operators are used to perform operations on variables and values. Arithmetic Operators, Relational Operators, Bitwise Operators, Logical Operators, Assignment Operators, Misc Operators.

Strings in Java

In Java, Strings is are widely used in Java programming. String is basically a sequence of characters. In the Java programming language, strings are objects.

Math class in Java.

The Java Math class has many methods to work on math calculations like min(), max(), sin(), cos(), tan(), ceil(), floor(), abs(), avg(), round() etc.

Boolean in Java.

In this tutorial, we are going to explore Java boolean a primitive data type. This data type has two values true or false.

Java While loop

In Java, while loop is a control statement that allows part of the program repeatedly based on a given condition is true.

For Loop in Java.

In Java, for loop is a loop that facilitates a user to execute a block of a statements iteratively for a fixed number of times.

Array in Java.

Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.

Methods in Java.

In Java, A method is a collection of statements that are grouped together to perform a certain task or operation.

Methods Overloading in Java.

In Java, Overloading allows different methods to have the same name, but different in parameters. These methods are called overloaded methods.