Is there a goto statement in Java?

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

    It's very much considered one of those things you Do Not Do, but was probably listed as a reserved word to avoid confusion for developers.

提交回复
热议问题