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 is the is a and has a relation ship in oops concept in java?
What is flag in python?
Can we assign null to double in java?
What is the full name of java?
how to java plateform independent?
What problems will occur when you don?t use layout managers?
What is formatted output in java?
What is 'finally' method in Exceptions?
What are invisible components?.
What are identifiers in java?
Is integer immutable in java?
Explain Event handling in AWT?