public R method() { while(true) { //infinite loop //some code } //from here the below code will never get executed }