一、变量声明 问:变量声明是什么? 答:告诉编译器为变量创建存储的位置和大小。 class Example { static void main(String[] args) { // x is defined as a variable String x = "Hello"; // The value of the variable is printed to the console println