标识符和关键字

关键字

 

标识符:

Java所有的组成部分都需要名字,类名  变量名  以及方法名都称为标识符

 

关键字+标识符

例如:     

String  hello  =“holo”;

注意点:

 

 

String hello ="holo";
String _hello ="holo";
String $hello ="holo";

//String 123hello ="holo"; ×
//String #hello ="holo"; ×
//String -hello ="holo"; ×
//String class ="holo"; ×

 

posted @ 2021-06-27 17:10  归故归谷糕  阅读(41)  评论(0)    收藏  举报