c = new Boolean(false);
就跟int和Integer的关系一样

解决方案 »

  1.   

    同意楼上的.boolean 才是基本类型。但即使用c = new Boolean(false);也不能写成c = false;
      

  2.   

    这是java.lang.Boolean的说明:
    The Boolean class wraps a value of the primitive type boolean in an object. An object of type Boolean contains a single field whose type is boolean. In addition, this class provides many methods for converting a boolean to a String and a String to a boolean, as well as other constants and methods useful when dealing with a boolean.