Is there a goto statement in Java?

前端 未结 23 2321
醉酒成梦
醉酒成梦 2020-11-22 04:50

I\'m confused about this. Most of us have been told that there isn\'t any goto statement in Java.

But I found that it is one of the keywords in Java. Where can it be

23条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 05:41

    See the following link is shows all java reserved words and tells you what versions they where added.

    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/_keywords.html

    goto is reserved, even though it is not currently used, never say never however :)

提交回复
热议问题