Variable declaration

Variable declarion is java is done as type of the variable followed by the name.

  char c;
  byte b;
  int i;
  long l;
  String str;

There are no unsigned types in java, all numeric types are signed. The character can take multiple bytes, depending on the character set used. String is immutable, you can not change individual character in a string, but you can create a new string by changing inndividual characters.

Types

Loops

Protection

File Handling

Defining methods