Reputation: 27
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
Reputation: 9348
An interface can have inner classes in addition to what you have mentioned.
Upvotes: 0
Reputation: 20594
It can contain an inner class or interface also. Hava a look at Map.Entry.
Upvotes: 1
Reputation: 4657
Wikipedia is your friend: http://en.wikipedia.org/wiki/Java_interface
The article explains it well and also has examples.
Upvotes: 2