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 restrictions are placed on method overloading?
Does constructor return any value?
Explain Big-O notation with an example
What is Restrictions in hibernate?
What is contractor means and methods?
what is mean by method signature?
Which is dependent variable?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
. Define Copy Constructor in Java
Which keyword specify that a variable is effectively final ?
What is the difference between access specifiers and access modifiers in java? 16
What is abstraction with strong example program? (not a general program)