注释标识符关键字

注释标识符关键字,第1张

public class dome {
public static void main(String[] args) {
//大小写十分敏感
String la = “hudi”;
String Aa = “hudi”;
String _a = “hudi”;
String a = " h u d i " ; / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = / ∗ 多 行 注 释 ∗ / / ∗ ∗ ∗ 文 档 注 释 ∗ / S y s t e m . o u t . p r i n t l n ( l a ) ; S y s t e m . o u t . p r i n t l n ( a ) ; S y s t e m . o u t . p r i n t l n ( a = "hudi"; //==================================================== /* 多行注释 */ /** * 文档注释 */ System.out.println(la); System.out.println(_a); System.out.println( a="hudi";//====================================================////System.out.println(la);System.out.println(a);System.out.println(a);
System.out.println(Aa);
//变量
String 王者荣耀 =“最强王者”;
String 王者荣耀2 =“倔强青铜”;
System.out.println(王者荣耀);
}
}
java所有的组合都需要名字,类名,变量名以及方法名,都被称为标识符

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/877745.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-13
下一篇 2022-05-13

发表评论

登录后才能评论

评论列表(0条)

保存