Java语言支持的变量类型有:
import java.io.*; public class Employee{ //salary是静态的私有变量 private static double salary; // DEPARTMENT是一个常量 public static final String DEPARTMENT = "Development "; public static void main(String args[]){ salary = 1000; System.out.println(DEPARTMENT+"average salary:"+salary); } }
原文:http://www.cnblogs.com/wudikaka/p/7209000.html