JAVA注释
注释
注释并不会被执行,是给写代码的人看的
1.单行注释:可以注释一行文字
public class hello {
public static void main(String[] args) {
//单行注释
//输出一个hello,world
System.out.println("hello,world");
}
}
// 表示单行注释
2.多行注释:可以注释一段文字
/* public class hello {
public static void main(String[] args) {
System.out.println("hello,world");
}
} */
/* 注释*/ 表示多行注释
3.javaDoc:文档注释
/** 注释 */

浙公网安备 33010602011771号