What is the difference between an abstract class and an interface?

 

Interfaces don’t define methods. Also, classes cannot inherit from more than one class, abstract or not, while a class may implement many interfaces. Both can have constant declarations but in an interface they are implicitly public static and final.

How do you derive a new class from a class?

Where A is a subclass of B,
public class A extends B {
// class contents
}