Java compilers or JVM languages that support goto?

前端 未结 9 2197
孤城傲影
孤城傲影 2021-01-12 20:22

Is there a java compiler flag that allows me to use goto as a valid construct? If not, are there any third-party java compilers that supports goto?

9条回答
  •  长情又很酷
    2021-01-12 20:59

    Java does not allow using goto keyword. However, it allows using labels and using break or continue with label instead of goto. In facts, Java is not a language without goto statement, but a language with uncomfortable implementation of it.

提交回复
热议问题