public class DifferenceBetweenWhileAndDoWhile { public static void main(String[] args) { // TODO Auto-generated method stub int i = 1; //The loop block will not be executed if the while expression is evaluated false while (i <1 ) { System.out.println(i); i--; } // The loop block at least is executed once, even though the while expression is false do { System.out.println("Starting"); System.out.println(i); i--; }while (i <1 && i > -1); } }