你可以Implements interface1,interface2,interface3....
但是你不可以extends abstrct1,abstract2,abstract...

解决方案 »

  1.   

    没什么区别应该要问interface和abstract有什么区别interface比abstract还要抽象,不能有默认实现。
      

  2.   

    Thinking in Java:Abstract base classes and interfaces
    Often in a design, you want the base class to present only an interface for its derived classes. That is, you don’t want anyone to actually create an object of the base class, only to upcast to it so that its interface can be used. This is accomplished by making that class abstract by using the abstract keyword. If anyone tries to make an object of an abstract class, the compiler prevents it. This is a tool to enforce a particular design. 
    You can also use the abstract keyword to describe a method that hasn’t been implemented yet—as a stub indicating “here is an interface method for all types inherited from this class, but at this point I don’t have any implementation for it.” An abstract method may be created only inside an abstract class. When the class is inherited, that method must be implemented, or the inheriting class becomes abstract as well. Creating an abstract method allows you to put a method in an interface without being forced to provide a possibly meaningless body of code for that method.
    The interface keyword takes the concept of an abstract class one step further by preventing any method definitions at all. The interface is a very handy and commonly used tool, as it provides the perfect separation of interface and implementation. In addition, you can combine many interfaces together, if you wish, whereas inheriting from multiple regular classes or abstract classes is not possible.
      

  3.   

    interface 和abastract有一样的地方就是都含有字母actr
      

  4.   

    java没有多重继承,interface可以帮助实现这个功能。另外  Abstract class:  1.不会产生物件
                           2.Specification与implementation分离
                           3.隐藏实作细节,显示操作规格介面
                           4.在特定的Level隐藏不必要的细节,显示重要的资讯
                           5.包含 attribute、abstract method、一般method       Interface    :  1.不会产生物件
                           2.提供共同、统一的存取介面
                           3.降低模组间耦合性
                           4.包含 interface attribute(not instance attribute)、
                              abstract method