Logical statements :
  • If block with curly braces, delimits and segregates the blocks
  • If block without curly braes, treats one block
  • if-else block, when if block  condition is logically in correct then else block is considered.

  • switch block
  • while (true condition)

  • do--while

Java performs conversation from lower to higher type implicitly

  • double = int ; // implicit way
  • float = int; //implicit way
  • float= (float) double; // explicit way