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 |
How can a gui component handle its own events?
What is the life cycle of Servlet?
Can a class have an interface?
What is subsequence of a string?
What do you meant by active and passive objects?
What is the difference between heap and stack memory?
What does bitwise or mean?
What do you mean by stack?
What is an infinite loop? How infinite loop is declared?
What is difference between wait and notify in java?
Explain wait(), notify() and notifyall() methods of object class ?
who was the founder of java
32 Answers CTS, HCL, ProKarma,