楼主你好,接口会产生.class文件。以下列代码为例:- interface Test
- {
- public abstract void show();
- }
- class Demo implements Test
- {
- public void show()
- {
- System.out.println("Hello World!");
- }
- public static void main(String[] args)
- {
- System.out.println("Hello World!");
- }
- }
复制代码 编译后生成相应的class文件:
|