ava中interface的方法默认修饰符是public abstract。有sun官方文档吗? 
在哪里能看到 sun的 官方文档的说明。

解决方案 »

  1.   

    如果我对java 什么也不懂,想看一下,去哪里看?
      

  2.   

    你看文档上的东西就好啊!干嘛看那么深的东西,文档看明白知道是怎么回事,怎么用就好了,你又不打算进sun开发团队
      

  3.   

    文档是有的,在英文版的文档中应该有,这是一个全面的文档,中文的文档只有api文档。
      

  4.   

    直接把jdk的src.zip作为你的IDE的lib包,让工程都引入它,然后你就可以看jdk的源码,源码里面说不定有。我懒得开jbuilder了,里面的注释很完整的。
      

  5.   

    Java Language Specification, 3rd ed. §9.4 Abstract Method Declarations
    http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.4Every method declaration in the body of an interface is implicitly abstract, so its body is always represented by a semicolon, not a block.Every method declaration in the body of an interface is implicitly public.
      

  6.   

    自己写个接口,添加个方法
    编译后,用eclipse看下 class文件就知道了。
      

  7.   

    去JDK里面jre下面的lib目录下rt.jar文件就可以看到
      

  8.   

    An interface declaration introduces a new reference type whose members are classes, interfaces, constants and abstract methods. This type has no implementation, but otherwise unrelated classes can implement it by providing implementations for its abstract methods.翻译如下:
    //接口声明引入了新的引用类型的成员是类,接口,常量和抽象方法。这种类型没有实现,但在其他无关的类可以通过提供实现其抽象方法的实现它。