2、Java中的注释: int x; // a comment 一行中"//"后的部分为注释内容 /* The variable x is an integer: */int x; “/*” 和 “*/”之间的所有内容为注释内容,编译器对此注释内容不做处理 /** x -- an integer rePResenting the x coordinate */ int x; “/**”和“*/”之间的所有内容为注释内容,编译器对此注释内容不做处理,此种注释为文档工具 javadoc 生成文档时所用