---
title: "抽象接口(abstract interface)与接口(interface)的区别"
author: "DavisWang"
date: "2011-10-22T20:04:49Z"
tags: []
categories: ["编程语言"]
slug: "abstract-interface-interface"
draft: false
lastmod: "2011-10-22T20:04:49Z"
id: 1207837
url: "https://daviswang.iteye.com/blog/1207837"
---

抽象接口(abstract interface)与接口(interface)没有任何区别，所有接口中的方法缺省为抽象方法，所以在interface前是否有abstract修饰对方法的属性无任何影响。

下面是官方的说明：

**“**All of the methods in an *interface* (see the [`Interfaces`](http://daviswang.iteye.com/admin/IandI/createinterface.html) section) are *implicitly* abstract, so the `abstract` modifier is not used with interface methods (it could be—it's just not necessary).”

详见：[http://download.oracle.com/javase/tutorial/java/IandI/abstract.html](http://download.oracle.com/javase/tutorial/java/IandI/abstract.html)