1.继承接口
2.略(因为不懂)

解决方案 »

  1.   

    多态当然好理解了..... 如楼上 .
    多线程 比如说不同的线程Load的class 不能相互应用 ....... 还有如下例: 
     public class ThreadLocal
    extends Object
    This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one (via its get or set method) has its own, independently initialized copy of the variable. ThreadLocal instances are typically private static fields in classes that wish to associate state with a thread (e.g., a user ID or Transaction ID). For example, in the class below, the private static ThreadLocal instance (serialNum) maintains a "serial number" for each thread that invokes the class's static SerialNum.get() method, which returns the current thread's serial number. (A thread's serial number is assigned the first time it invokes SerialNum.get(), and remains unchanged on subsequent calls.) public class SerialNum {
    // The next serial number to be assigned
    private static int nextSerialNum = 0;private static ThreadLocal serialNum = new ThreadLocal() {
    protected synchronized Object initialValue() {
    return new Integer(nextSerialNum);
    }
    };public static int get() {
    return ((Integer) (serialNum.get())).intValue();
    }
    }
    Each thread holds an implicit reference to its copy of a thread-local variable as long as the thread is alive and the ThreadLocal instance is accessible; after a thread goes away, all of its copies of thread-local instances are subject to garbage collection (unless other references to these copies exist).
      

  2.   

    类继承或者接口实现!!动态绑定!!多线程有什么缺点啊??如果不是用锁,不能准确的知道执行顺序!
      

  3.   

    多线程有什么缺点--------------------- 浪费资源
      

  4.   

    继承和实现接口都实现了多态线程序管道间通信也不应出现什么麻烦啊
    线程序比使用进程还应节给资源才对什么线程序切换,是线程的优先级调度吗?怕线程没有消毁浪费资源的对线程我也用得不多,基本上还没有用过,不太清楚。--------------------------
                    他们为什么扣我的信誉分
                    扣我信誉分怎么没有记录
    --------------------------