Can a for statement loop indefinitely?

Answers were Sorted based on User's Feedback



Can a for statement loop indefinitely?..

Answer / ranganathkini

Yes a for statement can loop infinitely. Example:

for( ; ; ) {
// ..staements to loop
}

Is This Answer Correct ?    10 Yes 0 No

Can a for statement loop indefinitely?..

Answer / guest

yes

Is This Answer Correct ?    7 Yes 1 No

Can a for statement loop indefinitely?..

Answer / ravikiran(aptech mumbai)

yes for(;;)

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Core Java Interview Questions

make a method which any number and any type of argument and print sum of that arguments.....

0 Answers  


What are the drawbacks of singleton class?

0 Answers  


Tell me the difference between an applet and a Japplet?

1 Answers  


What are variable names?

0 Answers  


What is <> used for in java?

0 Answers  






What are other modifiers?

2 Answers   Wipro,


Does substring create a new object?

0 Answers  


Write a method to check if input string is palindrome?

0 Answers  


Give me an example of array and linked list? Where they can be used?

0 Answers   Ericsson,


What is get () in java?

0 Answers  


How are variables stored in memory?

0 Answers  


how session will be expired ?

4 Answers   Satyam,


Categories