- class ThreadTest
- {
- public static void main(String[] args)
- {
- new Thread(new Runnable()
- {
- public void run()
- {
- System.out.println("runnable run");
- }
- })
- {
- public void run()
- {
- System.out.println("subThread run");
- }
- }.start();
复制代码
看着略晕。。。
运行结果是subThread run
{:3_67:} 求大神讲解一下原因。。。 |
|