Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么gotojava中的关键字没有使用却被保留?
goto
编辑:为了避免歧义再次改写问题,我理解 goto 功能在 java 中不受支持,并且也理解它使代码难以阅读。但它不支持,那么为什么要保留它。它至少可以用作变量名