xmhky 原创图解 · 更新于 2026-09
Java 不会给局部变量默认值,不赋值就使用会直接编译报错。
int a = 10;
int b;
b = 20;
int c;
System.out.println(c);