answersLogoWhite

0


Best Answer

The for loop is commonly used to repeat a statement a certain number of times, especially if you know in advance how many repetitions you need.

while will continue to repeat the statement while the condition is true.

do...while is similar to while, but the condition is evaluated after the command is executed.

In all of these cases, you can replace the single command with a block of code, i.e., several commands within curly braces.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain various looping statements in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Art & Architecture

What are the main landforms of Jakarta?

Jakarta is in the island of Java. Java is part of Indonesia archipelago


What is a java dove?

A java dove is what they refer to a white dove as. Although it is not actually its own species, it is just a mutation of the ringneck dove.


When thinking about JCA what exactly is Java Cryptography Architecture?

Java Cryptology Architecture is used via the cryptology using the Java programming language. It also works with Oracle. Basically it's the science of secret writing in secret programming.


How are viruses being programmed?

They are programmed in programming languages or scripting languages like Visual basic , c , c++,java , vb script or java script.


Why is java strongly associated with the internet?

Internet users can use java to create applet programs and run them locally using a "java enabled browser" such as hotjava they can also use a java enabled browser to download an applet located on a computer to download an applet located on a computer anywhere in the internet and run it on their local computer.internet users can also setup their websites containing java applets that could be used by other remote users of the internet.Java is platform independent. Unlike .net that can be run on only windows systems, Java runs on any system that has the Java run-time installed.As far as uses, java is used in web development, creating front ends for web sites, creating back-end processes that implement the business processes, connecting to databases. It is also used in desktop software development, mobile applications, scientific software, medical software. There are many open source projects that have been implemented in java. You don't need any investment in software to start working on Java programming.Simply because there are lots of contents out there created with Java technology. To actually run this content, you need to have Java installed.Java is popular on the internet because it functions on an extremely wide range of devices, regardless of the operating system. Because of this, users on one type of computer can use a java program on the internet made by a person using a different type of computer without having to download a new operating system or using an emulator.JJava is used to create applets that can be embedded in HTML. It is platform independent and eliminates a lot of security problems.

Related questions

What are the three looping statements in java PL?

There are 4 different looping statements in Java. They are:While loopDo-While loopFor loopFor Each loop


What is the pane in which the Java programming statements are located called?

The pane in which the Java programming statements are located is called


What are the statements in java?

There are many kinds of statements that are used in Java and they are predominantly used for database connectivity using JDBCEx:PreparedStatement - for normal SQL QueriesCallableStatement - for stored procedures


Where is it possible to get a Java iterator?

The Oracle website has a step by step pattern that shows how to obtain an iterator for use with Java programming. HashMap can also be helpful with explaining the looping sequence.


What is a method in Java?

A Java method is a sequence of statements. It is comparable to a function, subroutine, or procedure in other languages.


Explain all the control statements in java?

The if and switch statements are commonly referred to as decision statements. When we use decision statements in our program, we're asking the program to evaluate a given expression to determine which course of action to take. It decides the control flow of the program.


Explain the role of sizeof operator in java?

There is no sizeOf() operator in Java.


Explain the statement there is more to java than the language?

All programming languages are abstract things - collections of rules which dictate how symbols may form words, how words may form statements, and how statements may form programs. Programming languages need "other stuff" in order to actually be useful. For most languages this will include either a compiler or an interpreter which can turn source code into executable programs. Java's "other stuff" includes a compiler, which turns Java source code into Java byte code, and the Java Virtual Machine (JVM), which allows Java byte code to execute on your computer.


What are the uses of java database connectivity?

Java Database Connectivity, a Java API that enables Java programs to execute SQL statements. This allows Java programs to interact with any SQL-compliant database.


Different controls structures in java?

posted by Suhit s Kalubarme Software Developer Solapur 9260069199 Controls are components that allow the user to interact with your application in various ways e.g. a commonly use the control is command button. Various controls: 1. Label 2. Button 3. Check Box 4. Choice Box 5. TextArea 6. TextField


Where can one find more information on Java car rental?

Java Car Rental is an opensource program which you can find on various forums across the net, though the best place to learn how to create this program is Rose India. They offer the code and explain the variables you can tweak for your business - it is actually quite simple, and there are various places to go for tutorials that explain how you can tweak this program to your liking.


How are java program statements terminated?

Each statement in Java ends with a semicolon, for example: int a; a = 5; int b = 10;