Interfaces and abstract classes cannot be used to create objects.(Neither interfaces nor abstract classes can be instantiated.)
Why to use interfaces and abstract classes and methods: for security-hide certain details just show important details of an object.
Interface:
Interfaces are abstract classes. Interface methods don’t have bodies.
To access interface methods, the interface must be implemented by another class with “implements” keyword.
A class can “implements” multiple interfaces.
abstraction:
Data abstraction is the process of hiding certain details and just showing essential information to the user.
Abstraction can be achieved with abstract classes and interfaces.
Abstract classes and methods:
The Abstract keyword is a non-access modifier, used by any class or methods.
Abstract classes cannot used to create objects. To access it, it must be inherited from another class using extends keyword. ..can have abstract methods and regular methods.
Abstract methods can only used in an abstract class without body.