摘要:
Programming for thread in JavaOverride Annotation 1 package java.lang; 2 import java.lang.annotation.ElementType; 3 import java.lang.annotation.Retention; 4 import java.lang.annotation.RetentionPolicy; 5 import java.lang.annotation.Target; 6 7 /** 8 * Annotation type used to mark methods that over.. 阅读全文
posted @ 2013-08-21 14:05
iDragon
阅读(545)
评论(0)
推荐(0)
摘要:
Exception 1 Try 2 { 3 ... ... 4 } 5 catch (Exception ex) 6 { 7 …; 8 throw new Throwable(ex); 9 }10 catch (Throwable ex)11 {12 …;13 }14 finally15 {16 17 } 1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more 3 * contributor license agreements. See the... 阅读全文
posted @ 2013-08-21 11:00
iDragon
阅读(533)
评论(0)
推荐(0)
摘要:
Implementation with JavaFrom:http://jcsc.sourceforge.netIn general, follow the Sun coding conventions.These are available at java.sun.com/docs/codeconv/index.html (the code in this book follows these conventions as much as I was able). These are used for what constitutes arguably the largest body of 阅读全文
posted @ 2013-08-21 09:31
iDragon
阅读(285)
评论(0)
推荐(0)
摘要:
Effective Java: Programming Language GuideItem 1: Consider providing static factory methods instead of constructor.Advantage: have a name, no new operator everytime, return any subtype of iteself. Consider pattern: Singleton and Factory method (with many different ways to implement: Creator by inher 阅读全文
posted @ 2013-08-21 09:16
iDragon
阅读(296)
评论(0)
推荐(0)

浙公网安备 33010602011771号