Infinite loop using while ?
Answers were Sorted based on User's Feedback
Answer / nav dev
boolean a=true;
while(a)
{
//here a should be boolean type
System.out.println(a);
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / sanjay singh bisht
while(true)
{
System.out.println("sanju baba");
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / nitin
int a=5;
while(a)
{
System.out.println(a);
}
or
while(true)
{
System.out.println("true");
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sukale shobha balshiram
int a=0;
while(a+1)
{
System.out.println(a);
}
| Is This Answer Correct ? | 4 Yes | 4 No |
What are the four pillars of java?
How do you add an arraylist to an array in java?
What is difference between add() and addelement() in vector?
What is predicate in java?
Can a static class have a constructor java?
how to crate clint-server socket?
1 Answers Accenture, Infosys, Infotech, TCS,
Explain what is Marker interface?
What is string manipulation?
What is the difference between keyword and identifier?
What is a local, member and a class variable?
Which java collection does not allow null?
What is regex java?