user606423
user606423

Reputation: 27

Contents of an Interface

What are all the things that an interface can have, apart from abstract method and static variables?

Please give me few explainations. Inputs are highly welcomed.

Upvotes: 2

Views: 1005

Answers (3)

abson
abson

Reputation: 9348

An interface can have inner classes in addition to what you have mentioned.

Upvotes: 0

Arne Burmeister
Arne Burmeister

Reputation: 20594

It can contain an inner class or interface also. Hava a look at Map.Entry.

Upvotes: 1

pajevic
pajevic

Reputation: 4657

Wikipedia is your friend: http://en.wikipedia.org/wiki/Java_interface

The article explains it well and also has examples.

Upvotes: 2

Related Questions