識別符號關鍵字和注意點
阿新 • • 發佈:2020-12-24
abstract抽象的 assert
boolean break
byte case
catch char
const(保留字) continue
default do
double else
enum extends
final finally
float for
if goto(保留字)
implements import
int interface
long native
new package
private protected
public return
short static
strictfp super
switch synchronized
this throw
throws transient
try void
volatile while
識別符號注意點
public class Demo01 {
public static void main(String[] args) {
String 王者榮耀 ="百星王者";
//String 王者榮耀 ="倔強青銅";
System.out.println(王者榮耀);
//大小寫十分敏感
String Man="xiatiandesuyan";
String man="xiatiandesuyan";
String name="xiatiandesuyan";
String Ahello ="xiatiandesuyan";
String hello ="xiatiandesuyan";
String $hello ="xiatiandesuyan";
String _hello ="xiatiandesuyan";
String _ ="xiatiandesuyan";
//String class ="xiatiandesuyan";
//String 1hello ="xiatiandesuyan";
//String #hello ="xiatiandesuyan";
//String *hello ="xiatiandesuyan";
}
}