Can a for statement loop indefinitely?
Answers were Sorted based on User's Feedback
Answer / ranganathkini
Yes a for statement can loop infinitely. Example:
for( ; ; ) {
// ..staements to loop
}
Is This Answer Correct ? | 10 Yes | 0 No |
If two threads have same priority which thread will be executed first ?
Can you write a java class that could be used both as an applet as well as an application?
What is the difference between an if statement and a switch statement?
What is an association?
Differentiate between a constructor and a method? Can we mark constructors final?
how can you say that java is independ language
Can you override a private or static method in java?
What is the difference between notify and notifyall method?
Is 0 a prime number?
What is a string what operation can be performed out with the help of a string?
What is an enumeration class?
Should database connections be singleton?