0

Possible Duplicate:
Java abstract interface

Why do Java developers use public abstract for interfaces? Interfaces are abstract by default.

For example:

public abstract interface test{
    …
}
Community
  • 1
  • 1
Shreyos Adikari
  • 12,348
  • 19
  • 73
  • 82
  • It's a matter of taste. Some developers prefer to use the abstract in every point of code where there is an abstract class (even interfaces), to make searchs easier. But it's just a matter of taste. – Gilberto Torrezan Sep 20 '12 at 17:16

1 Answers1

2

It's not necessary. According to JLS:

9.1.1.1. abstract Interfaces

Every interface is implicitly abstract.

This modifier is obsolete and should not be used in new programs.

Tudor
  • 61,523
  • 12
  • 102
  • 142