125条常见的java面试笔试题大汇总
1.笼统:笼统即是疏忽一个主题中与当时方案无关的那些方面,以便更充分地注意与当时方案相关的方面。笼统并不方案理解全面问题,而仅仅选择其间的一部分,暂时不必部分细节。笼统包括两个方面,一是进程笼统,二是数据笼统。2.承继:承继是一种联结类的层次模型,而且许可和鼓励类的重用,它提供了一种清晰表述共性的方法。目标的一个新类可以从现有的类中派生,这个进程称为类承继。新类承继了初始类的特性,新类称为初始类的派生类(子类),而初始类称为新类的基类(父类)。派生类可以从它的基类那里承继方法和实例变量,而且类可以修复或添加新的方法使之更适合特别的需求。3.封装:封装是把进程和数据包围起来,对数据的访问只能通过已定义的界面。面向目标计算始于这个基本概念,即实际S界可以被描绘成一系列完全自治、封装的目标,这些目标通过一个受维护的接口访问别的目标。4.多态性:多态性是指许可不同类的目标对同一消息作出响应。多态性包括参数化多态性和包括多态性。多态性语言具有灵敏、笼统、行为共享、代码共享的优势,很好的解决了使用程序函数同名问题。125条常见的java面试笔试题大汇总.doc
(1. To generalize: To generalize is to neglect those aspects of a subject that are not relevant to the current program in order to pay fuller attention to the aspects related to the current program. Generalization does not mean to understand comprehensive problems, but only select a part of them, without some details for the time being. The generalization includes two aspects, one is the generalization of the process, and the other is the generalization of the data. 2. Inheritance: Inheritance is a hierarchical model of connecting classes, and allows and encourages the reuse of classes, it provides a clear way of expressing commonalities. A new class of the target can be derived from an existing class, a process called class inheritance. The new class inherits the characteristics of the original class, the new class is called the derived class (subclass) of the original class, and the original class is called the base class (parent class) of the new class. A derived class can inherit methods and instance variables from its base class, and the class can fix or add new methods to better suit specific needs. 3. Encapsulation: Encapsulation is to surround the process and data, and access to the data can only be done through a defined interface. Object-oriented computing begins with the fundamental concept that the real world can be represented as a set of fully autonomous, encapsulated objects that access other objects through a maintained interface. 4. Polymorphism: Polymorphism refers to permitting different classes of targets to respond to the same message. Polymorphism includes parametric polymorphism and inclusive polymorphism. Polymorphic language has the advantages of sensitivity, generality, behavior sharing, and code sharing, and it solves the problem of using program functions with the same name.
125 common java interview questions summary.doc)
页:
[1]