Topic: 线程的问题

  Print this page

1.线程的问题 Copy to clipboard
Posted by: ysonic
Posted on: 2005-06-13 14:49

我遍了一个有线称的程序,
编译时多出来两个class文件 client_thread$1.class Server_thread$1.class
本来类的名字是没有"$1"的,是不是因为有线程 的原因?

2.Re:线程的问题 [Re: ysonic] Copy to clipboard
Posted by: snowbird2005
Posted on: 2005-06-13 16:18

这是因为你使用了两个内部匿名类,
client_thread类和Server_thread类里各一个,
匿名类的编译后文件命名是"主类名$n.class",n=1,2,3...


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923