源程序: public class Test{ public static void main(String args[]){ boolean flag = true; System.out.println("flag = "+flag); } } 运行结果: