How do you declare an infinite loop?

Answer Posted / hr@tgksolutions.com

for (;;)
{
// Statements to execute
// Add any loop breaking logic
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2259


Why does it take so much time to access an applet having swing components the first time?

1662


What is default exception handling in java?

772


What is module with example?

687


What is final class?

782


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

805


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

774


Is string passed by reference in java?

760


How do you insert a line break?

679


What does a za z0 9 mean?

755


How big is a boolean?

797


how to convert Java project into Maven ?

798


Can we override final method?

745


What is the meaning of 3 dots in java?

876


How do you take thread dump in java?

763