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 |
Explain how hashmap works?
can we overload main method?
Why can we not override static method?
Name two subclasses of the TextComponent class?
Can we serialize singleton class?
When super keyword is used?
What is java util collection?
How to make a method thread safe without using synchronized keyword?
8 Answers Persistent, Societe Generale,
how to get the max salary and name of employee from arraylist without using the Comperator or even Comparable interface?
Name the package that most of the AWT events that supports event-delegation model are defined?
How big is a 32 bit integer?
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?