Answer Posted / 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 |
Post New Answer View All Answers
How do you write a good declaration?
Differentiate between stringbuffer and stringbuilder in java.
Variables used in a switch statement can be used with which datatypes?
Write a factorial program using recursion in java?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is the advantage of functional interface in java 8?
Why do we need data serialization?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is the reason behind using constructors and destructors?
What about interthread communication and how it takes place in java?
What do you mean by scope of variable?
Is linkedlist thread safe in java?
What is callable java?
explain the concept of virtual method invocation in polymorphism in detail?
What is native method in java?