An interface in the Java programming language is an abstract type that is used to specify an interface.