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 charat ()?
Explain the difference between jdk, jre, and jvm?
Name few java util classes introduced with java 8 ?
Why a dead thread occurs?
What are the 2 types of java programs?
What exactly is java?
Why java is object oriented?
What is assembly used for?
Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Explain with your own example..?
what are the states associated in the thread? : Java thread
What is a line break?
what is the use of clone method? why user cant overwrite in sub class without its proper defination.