java 英文面试 设计模式

这是一篇关于Java面试的文章,涵盖了设计模式如Abstract factory、Factory method、Proxy等,并讨论了Java中的encapsulation、inheritance和polymorphism这三个核心特性。文章还涉及了面试中常见的Java异常、集合API、同步(Synchronization)的概念以及Collection API的使用。此外,还讨论了用户定义异常、JDBC 2.0的新特性、垃圾收集、OOP原则和JVM相关问题。
摘要由CSDN通过智能技术生成

Good morning ! 
It is really my honor to have this opportunity for an interview, 
I hope i can make a good performance today. I'm confident that I can succeed. 
Now i will introduce myself briefly 
I am 26 years old,born in shandong province . 
I was graduated from qingdao university. my major is electronic.and i got my bachelor degree after my graduation in the year of 2003. 
I spend most of my time on study,i have passed CET4/6 . and i have acquired basic knowledge of my major during my school time. 
In July 2003, I began work for a small private company as a technical support engineer in QingDao city.Because I'm capable of more responsibilities, so I decided to change my job. 
And in August 2004,I left QingDao to BeiJing and worked for a foreign enterprise as a automation software test engineer.Because I want to change my working environment, I'd like to find a job which is more challenging. Morover Motorola is a global company, so I feel I can gain the most from working in this kind of company ennvironment. That is the reason why I come here to compete for this position. 
I think I'm a good team player and I'm a person of great honesty to others. Also I am able to work under great pressure. 
That’s all. Thank you for giving me the chance. 

 

 

三个特性:encapsulation inheritance polymorphism

 

常见运行时异常:空指针 ,classcastexception,arrayindexoutofboundexception ,illegalargumentexception,numberformatexception

 

设计模式(design pattern)

 

 

Abstract factory 

Factory method

Proxy 

Prototypejava.lang.Object#clone() (the class has to implement java.lang.Cloneable))

Singleton 

Adapter 

 

 

 

引用

  

 

You can find an overview of a lot of design patterns in Wikipedia. It also mentions which patterns are mentioned by GoF. I'll sum them up here and try to assign as much as possible pattern implementations found in both the Java SE and Java EE API's.


Creational patterns

Abstract factory (recognizeable by creational methods returning the factory itself which in turn can be used to create another abstract/interface type)

Builder (recognizeable by creational methods returning the instance itself)

Factory method (recognizeable by creational methods returning an implementation of an abstract/interface type)

Prototype (recognizeable by creational methods returning a different instance of itself with the same properties)

Singleton (recognizeable by creational methods returning the same instance (usually of itself) everytime)


Structural patterns

Adapter (recognizeable by creational methods taking an instance of different abstract/interface type and returning an implementation of own/another abstract/interface type which decorates/overrides the given instance)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值