those are basic, but we need good answers,

来源: eric_in_chicago 2007-12-20 09:22:33 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1538 bytes)
1. not just answer thread safe, it is not enough:

Most people do not know the second answer, like amei50, and not even the interviewer.

ArrayList increase by its original size; Vector increase by double its current size;

so from performance point of view, if not for thread safe, try not to use Vector. Even for the thread safe, use syc key word to make ArrayList safe.

if you can answer all of above, you definitely pass the phone screen.

for senior level answer for abstract class and interface:

you need to know what situation you use abstract class and what circumstance you use interface and why.

For example: plane can be abstract class, and have abstract method land and fly, F22 is class and extends plane, so F22 must implement land and fly method;

meanwhile, enginee can be an interface, has an abstract method start, so not only F22 can implement enginee interface, BMW also can implement enginee interface.

But BMW does not want to extends plane abstract class, casue BMW does not need to fly and land.

So this the situation or circumstance to use abstract class or interface. If you can make an answer like this, you will get the job.

for the MVC, you must say in java/j2ee point, jsp is view, servlet is controler, and BO and DAO and EJB are model. If you just talk about MVC pattern and without jsp, servlet, bo and dao, you are not answering java/j2ee MVC pattern.

Hope these will help, not perfect, but enough.





所有跟帖: 

Regarding ArrayList and Vector how to increase size -宾州房客- 给 宾州房客 发送悄悄话 (1233 bytes) () 12/20/2007 postreply 10:15:46

that is too deep, interview won't ask this deep, -eric_in_chicago- 给 eric_in_chicago 发送悄悄话 eric_in_chicago 的博客首页 (130 bytes) () 12/20/2007 postreply 10:34:45

回复:those are basic, but we need good answers, -sub101- 给 sub101 发送悄悄话 (985 bytes) () 12/20/2007 postreply 10:28:07

can not agree with you -eric_in_chicago- 给 eric_in_chicago 发送悄悄话 eric_in_chicago 的博客首页 (544 bytes) () 12/20/2007 postreply 10:42:56

回复:can not agree with you -sub101- 给 sub101 发送悄悄话 (254 bytes) () 12/20/2007 postreply 10:51:17

面试最重要的是回答面试人想听到的答案 -amei50- 给 amei50 发送悄悄话 (293 bytes) () 12/20/2007 postreply 12:50:11

回复:面试最重要的是回答面试人想听到的答案 -sub101- 给 sub101 发送悄悄话 (76 bytes) () 12/20/2007 postreply 13:02:29

俺的方向... -澳洲老土- 给 澳洲老土 发送悄悄话 (311 bytes) () 12/20/2007 postreply 14:30:36

come on, it is phone interview, -eric_in_chicago- 给 eric_in_chicago 发送悄悄话 eric_in_chicago 的博客首页 (112 bytes) () 12/20/2007 postreply 18:32:43

要说method就不是function,那就说明method怎么call的.. -澳洲老土- 给 澳洲老土 发送悄悄话 (0 bytes) () 12/20/2007 postreply 19:41:34

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”