//据说这是一道阿里巴巴面试题,先以这道题为例分析下 public class Text { public static int k = 0; public static Text t1 = new Text("t1"); public static Text t2 = new Text("t2"); public static int i = print("i"); public static int n = 99; public int j
1.问题: 在dealloc方法中使用[self.xxx release]和[xxx release]的区别? 用Xcode的Analyze分析我的Project,会列出一堆如下的提示:Incorrect decrement of the reference count of an object that is not owned at this point by the caller 仔细看了下代码,都是在dealloc方法中使用了[self.xxx release]这样的语句引起的,把
/** * ConversionException: No value specified for Date的解决方法 */ ConvertUtils.register(new DateConverter(null), java.util.Date.class); //重点代码 BeanUtils.copyProperties(car2, car);