what are the four conditions and statement of java