How do you declare an infinite loop?

Answer Posted / nashiinformaticssolutions

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

Why you should not use singleton?

751


What are basic keywords?

799


What is == in java?

768


How to create a custom exception?

753


How do I stop concurrentmodificationexception?

738


Explain java code for recursive solution's base case?

784


What is stored procedure. How do you create stored procedure ?

1737


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

805


Explain OOPs concept.

837


I want to print “hello” even before main is executed. How will you acheive that?

899


Is set thread safe java?

702


What's a method in programming?

756


What is size () in java?

819


What are the different access modifiers available in java?

797


Explain importance of finally block in java?

801