一个内部类的用法。
Inc inc = tt.new Inc();
Dec dec = tt.new Dec();
package spooner;
public class ThreadTest1 {
class Inc implements Runnable {
public void run() {
for (int i = 0; i < 100; i++) {
inc();
}
}
}
class Dec implements Runnable {
public void run() {
for (int ...
http://elathen.itpub.net/post/32506/294971
http://elathen.itpub.net/post/32506/294972
http://elathen.itpub.net/post/32506/294973
http://www.ociweb.com/jnb/jnbNov2005.html
cglib 代理的是类的实例, 而非类.







评论排行榜