Java is an object-oriented language, Java is the advantage of C + + is the development of high efficiency, Java has not only a rich class library and open source framework, and its own garbage collection mechanism, greatly reducing the workload of programmers. But Java is not omnipotent, no language is universal. Programmers should choose the right language based on their actual needs.
Object-oriented features, encapsulation, inheritance, polymorphism. Encapsulation refers to the class package properties and methods, the object provides interfaces externally, we only need to invoke the interface to obtain data, do not know the implementation of the method. Inheritance refers to a parent-child relationship between classes, which inherits a subset of the properties and methods of the parent class. Polymorphism refers to the dynamic binding of a method, which is implemented on the basis of inheritance.
This article is from the "Technology Learning" blog, so be sure to keep this source http://jerryisme.blog.51cto.com/8307972/1683835
Getting Started with Java (i)