Computer Science, asked by Anonymous, 10 months ago

Explain the keywords (JAVA ) :

1. break

2. continue

3. goto


50 points(:​

Answers

Answered by Anonymous
82

Answer:

Hello Mate ...!!!

Explain the keywords (JAVA ):

  • Break: The Java break statement is used to break loop or switch statement.

  • Continue: The Java continue statement is used to continue the loop.

  • Goto: The Go goto statement is a jump statement which is used to transfer the control to other parts of the program.

_____________________________________

Hope it will be helpful :)...✍️

Answered by Anonymous
8

Answer:

BREAK

When the break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement (covered in the next chapter).

CONTINUE

The continue keyword is used to end the current iteration in a for loop (or a while loop), and continues to the next iteration.

GOTO

Unlike C++, Java does not support the goto statement. Instead, it has label . Labels are used to change the flow of the program and jump to a specific instruction or label based on a condition.

Similar questions