How does Java support object-oriented programming (OOP)?
The question is about Java
Answer:
Java was developed to implement major principles of object-oriented programming: inheritance, encapsulation, polymorphism, and abstraction. Anything in Java is an object, and a class defines what kind of attributes and methods may be applied to such objects. In this respect, the Java language borrows much from object-orientation principles, making it highly capable of supporting the development with high levels of modularity and code reuse to construct maintainable software that can be scaled up easily.