Question: JAVA question 1) In general what is a for loop used to do? 2)In general what is a while loop used to do? 3)In general

JAVA question

1) In general what is a for loop used to do?

2)In general what is a while loop used to do?

3)In general what is a do loop used to do (including how is it different from a while loop)?

4) How does the JVM accomplish a loop?

5) One cycle through a loop is called a?

6)Describe a nested loop.

7) What is a switch?

8) What are the two ways the compiler will handle the creation the bytecode for a switch? How does it pick which to do?

9) What tow types are allowed for the expression in a switch (switch(expression) ? What must be true of the cases?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!