BASICS OF JAVA:

  1. Java Platform
  2. Variables
  3. Data Types
  4. Operators
  5. Control Statements
  6. Looping Statements
  7. Array
  8. Applications

Java Platform:

Variables:

A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times.

Rules:

Types:

  1. Local variable
  2. Instance variable
  3. Static variable

Data Types:

A Data type specifies the type of data that a variable can store.

Types:

Primitive:

Data Types Size
boolean 1 bit
char 2 byte
byte 1 byte
short 2 byte
int 4 byte
long 8 byte
float 4 byte
double 8 byte

Non Primitive:

Operators:

An Operator is simply a symbol that is used to perform operations.

Types:

Control Statements:

A Control Statement is used to check the conditon.

Types:

Looping Statements:

The Looping can be defined as repeating the same process multiple times until a specific condition satisfies. There are four types of loops used in the JAVA language.

Types:

Array:

An Array is defined as the collection of similar type of data items stored at contiguous memory locations. Arrays are the derived data type in C programming language which can store the primitive type of data such as int, char, double, float, etc. It also has the capability to store the collection of derived data types, such as pointers, structure, etc. The array is the simplest data structure where each data element can be randomly accessed by using its index number.

Types:

Applications: