Types of variables in java