e.g.
while(true){
//code
}
2. System.exit(0) also not working.
Solution: The while loop has restrictions. Please refer to the release note & below point.
The while(true) and for ;; are restricted java constructs in user-defined java class.
They are not allowed. There was an issue regarding this in the 5.1.1 release. We suggest you can use the start loop & stop loop instance of while loop.