Hai
Ur code is interpreted in this way
Ur code
int i =1;
do while(i>1)
System.out.println("is it possible");
while(i>1);
interpreted like
do{ while (i>1)
System.out.println("is it possible");
}while(i>1);
similiarly u can code like this also
A)
int i =1;
do if(i>1)
System.out.println("is it possible");
while(i>1);
B)
int i =1;
do for(;i<1
System.out.println("is it possible");
while(i>1);
Regards
Mohan