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

Explain when noclassdeffounderror will be raised ?

830


What is matcher in java?

741


what is thread? What are the high-level thread states? : Java thread

1039


Does set allows null in java?

723


Difference between serialization and deserialization in java?

873


How do you check if two strings are equal in java?

817


Difference between == and .equals() ?

768


What is a conditional statement explain with example?

777


How do you include a string in java?

768


What is null statement?

785


What are streams in java 8?

780


Can we use synchronized block for primitives?

846


What is the purpose of lambda expressions?

812


Can we have a try block without catch block?

776


Why is stringbuffer thread safe?

823