Is there a goto statement in Java?

前端 未结 23 1978
醉酒成梦
醉酒成梦 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:48

    No, thankfully, there isn't goto in Java.

    The goto keyword is only reserved, but not used (the same goes for const).

提交回复
热议问题