Examples of basic concepts in java