Tag: break

Break Statement in Java

Java provides the break keyword that is used by the developers to exit out of the loop before the actual completion of the loop. Additionally , the break keyword can also be used to jump out of a single case in switch statement. Break Statement in Java Below is a sample code snippet demonstrating the usage of the break statement in java.