1 What are some of the ways that loop execution can be contr

1) What are some of the ways that loop execution can be controlled? What are indefinite loops?

2) Explain the various ways that a variable can be incremented?

3) What is the syntax of the Java for loop?

4) Why might we want to use nested loops in an application?

5) What are the differences between the Java Character, String, StringBuffer, and StringBuilder classes? What are some of the popular methods of these classes?

6) If Strings are a type of Java object, why don\'t we need to create them with the new keyword like other objects?

7) How can data be converted from one type to another in Java?

Solution

Multiple Questions : Answering one (3rd).

3)

The Syntax for Java for loop is :

for (initialization; termination; increment/decrement) {
statement(s)
}

eg:

for(int i=1; i<101; i++){
   System.out.println(\"Number : \" + i);
}

1) What are some of the ways that loop execution can be controlled? What are indefinite loops? 2) Explain the various ways that a variable can be incremented? 3

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site