Java is an object-oriented programming language, not only absorbs the various advantages of the C + + language, but also rejects the more difficult to understand in C + + inheritance, pointers and other concepts, so Java has powerful and easy to use two features.
Object-oriented programming (oriented programming), a programmatic way to decompose a program into modules that encapsulate data and related operations.
The object-oriented approach does encapsulate attributes and functionality, but its core is collation and abstraction.
By centralizing the relevant attributes and functions and isolating the parts that can be separated, the complex business logic can be cut into a relatively independent part of each other, reducing the difficulty of development.
So object-oriented is not just about getting a class and stuffing a bunch of stuff into it, what really matters is deciding what classes to construct, the associations between them, and where to put something.
One of the Java Basics Object-oriented