Extend prespecified classes, as in public class Foo extends javax.servlet.http.HttpServlet { ... Implement prespecified interfaces, as in public class Bar implements javax.ejb.EntityBean { ... Contain prespecified annotations, as in @javax.persistence.Entity public class Baz { ...