“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”
Yes and No. There is no “goto” operator used in Java, but one can use break statements to branch to a labelled statement, exactly as one would use a goto.
The continue keyword behaves like a goto in that it can redirect the execution of code to a labeled location in the source. Continue can also be used without a label, in which case it behaves less like a goto. However, unlike a goto, continue can only be used in certain other constructs.
No.
No; but it is a reserved keyword
No. However, C++ does have it.
Yes and No. There is no “goto” operator
used in Java, but one can use break
statements to branch to a labelled statement, exactly as one would use a goto.
http://java.sun.com/docs/books/jls/second_edition/html/statements.doc.html#6842
nopes..
but “goto” is a reserved word!!
Yes
The continue keyword behaves like a goto in that it can redirect the execution of code to a labeled location in the source. Continue can also be used without a label, in which case it behaves less like a goto. However, unlike a goto, continue can only be used in certain other constructs.
Leave an Answer/Comment