reading-notes

Class-01 reading Summary

The Java programming language defines the following kinds of variables:

  1. Instance Variables
  2. Class Variables
  3. Local Variables
  4. Parameters

Primitive Data Types:

byte:

short:

int:

long:

float:

double:

boolean:

char:

### Arrays:

Arrays need to be declared and then created. In order to declare a variable that will hold an array of integers, we use the following syntax:

int[] arr;

and to create array with for example a size = 5:

arr = new int[5];