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

How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?

826


What are generic methods?

740


Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).

1831


Can we define a package statement after the import statement in java?

831


What sorting algorithm does javascript use?

764


what is the use of bean managed and container managed with example?

1748


How do you break a loop?

776


Is java call by reference?

733


How can we run a java program without making any object?

783


java program with complete 4 oops concepts implemented example

2938


What do you mean by multithreaded program?

776


How can we pass argument to a function by reference instead of pass by value?

842


What is this keyword in java?

809


Can a class have more than one object?

767


What is the name of the java compiler?

796