How do you declare an infinite loop?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
for (;;)
{
// Statements to execute
// Add any loop breaking logic
}
| Is This Answer Correct ? | 0 Yes | 0 No |
for (;;)
{
// Statements to execute
// Add any loop breaking logic
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Is array size fixed in java?
What is immutable class? how to make a Class explicitly "Immutable"?Wap to make a class explicitly immutable.
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }
What are parsing rules?
What is module with example?
What is the implementation of destroy method in java. Is it native or java code?
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }
Why java is called not pure object oriented language?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What programs use java?
What is meant by controls and types?