Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the types of loops in Java, and how are they used?

Answer Posted / nashiinformaticssolutions

• In Java, for loops are used to repeatedly run statements for a specified number of times. When a programmer knows how many times to run a statement, they use a for loop.
•When some statements must run continuously until a condition is met, the while loop can be helpful. Before statements are executed in while loops, the condition is checked.
•With the exception of checking the condition after a block of statements has been executed, the do while loop is identical to the while loop. Do while loop statements should also run at least once.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the applet security manager, and what does it provide?

994


What will happen if a thrown exception is not handled?

1016


How do you get the length of a string in java?

1008


Write a function to print Fibonacci series and Tribonacci series?

1178


How will you reverse a link list without using recursion?

1031


What checkbox method allows you to tell if a checkbox is checked?

1003


What is size () in java?

1091


What is a for loop in java?

1040


What is a classloader in java?

1016


What is meant by overloading?

1064


What is assembly condition codes?

988


What are java annotations?

1155


What does percent mean in java?

1020


Differentiate between nested and inner class in java.

998


Difference between ‘is-a’ and ‘has-a’ relationship in java?

1006