cool to use in jsf and annotation - jboss will wire your implementation to an interface usign a annotation. Weld baby
Only constants, method sigs, default methods, static ,methods, nested types
interface can be extended by another interface
example from orACLE
Defining an interface is similar to creating a new class:
public interface OperateCar {
// constant declarations, if any
// method signatures
// An enum with values RIGHT, LEFT
int turn(Direction direction,
double radius,
double startSpeed,
double endSpeed);
int changeLanes(Direction direction,
double startSpeed,
double endSpeed);
int signalTurn(Direction direction,
boolean signalOn);
int getRadarFront(double distanceToCar,
double speedOfCar);
int getRadarRear(double distanceToCar,
double speedOfCar);
......
// more method signatures
}
COMMON USAGE
callbacks
events same thing
clone
serialize
Runnable
etc
No comments:
Post a Comment