Some iteration code is written like this
while(true) for(int i = 0 ; i<=4;++i)
{
{
System.out.println(i); System.out.println(i);
if(i==4)
break;
}
}
both have the same logic inside it take it as assumption. So which one will be faster, better to use in code and what are the implication of using any one of it??