In this Java for Testers tutorial, we will learn what is an interface in Java with example. Interfaces are used to achieve abstraction in Java. In an interface, only abstract methods can be there and no concrete method is allowed in Java interfaces. Interfaces are used to achieve multiple inheritance and abstraction in java.