How do you declare an infinite loop?

Answers were Sorted based on User's Feedback



How do you declare an infinite loop?..

Answer / nashiinformaticssolutions

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

Is This Answer Correct ?    0 Yes 0 No

How do you declare an infinite loop?..

Answer / hr@tgksolutions.com

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

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What does microservices mean?

0 Answers  


What is an abstract class?

8 Answers   DBS, Wipro,


Can we sort array in java?

0 Answers  


What does string intern() method do?

0 Answers  


Is null in java?

0 Answers  


What do you mean by local variable and instance variable?

0 Answers  


What is callablestatement? How you can call stored procedure to pass in parameter?

0 Answers  


Why pass by reference is not possible in java?

0 Answers  


What is difference between calling start() and run() method of thread?

0 Answers  


What is a variable and constant?

0 Answers  


What is Locale class?

1 Answers   MySoft,


What is not thread safe?

0 Answers  


Categories