[turn] how to prepare technical interview answers in Java direction (summary version)
This article is reproduced from: "Java regiment" official account.
1. Difference between object oriented and process oriented
Advantages of process oriented: the performance is higher than that of object-oriented, because class calls need to be instantiated, which costs a lot and consumes resources; For example, single chip microcomputer, embedded development and Linux / Unix generally adopt process oriented development, and performance is the most important factor. Disadvantages: there is no object-oriented, easy to maintain, easy to reuse and easy to expand. Object-oriented advantages: easy to maintain, easy to reuse and easy to expand. Because object-oriented has the characteristics of encapsulation, inheritance and polymorphism, it can design a low coupling system to make the system more flexible and easier to maintain. Disadvantages: the performance is lower than that of process oriented