用于开始Java源文件的有效关键字 [英] Valid Keywords for Beginning a Java Source File
本文介绍了用于开始Java源文件的有效关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
到目前为止,我知道这些关键字对于开始java源文件是有效的:
So far I know that these keywords are valid for beginning a java source file:
class
, public
, import
, package
, interface
, final
评论的补充: abstract
, strictfp
, enum
还有吗?
(感谢所有超级快速回复!随意编辑此内容以添加更多内容。)
(Thanks for all the super quick responses! Feel free to edit this to add more that are found.)
推荐答案
-
您错过的实际修饰符:
abstract
,strictfp
@Retention
等注释注释声明:
@interface
枚举:
enum
评论和空白
据我所知,没有其他内容
As far as I know, nothing else
请记住,标识符可能会在其中使用unicode转义, e
cl\\\ass
Keep in mind that identifiers may use unicode escapes inside them, like
cl\u0061ss
这篇关于用于开始Java源文件的有效关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文