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.
those are basic, but we need good answers,
所有跟帖:
•
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-
♂
(130 bytes)
()
12/20/2007 postreply
10:34:45
•
回复:those are basic, but we need good answers,
-sub101-
♂
(985 bytes)
()
12/20/2007 postreply
10:28:07
•
can not agree with you
-eric_in_chicago-
♂
(544 bytes)
()
12/20/2007 postreply
10:42:56
•
回复:can not agree with you
-sub101-
♂
(254 bytes)
()
12/20/2007 postreply
10:51:17
•
面试最重要的是回答面试人想听到的答案
-amei50-
♀
(293 bytes)
()
12/20/2007 postreply
12:50:11
•
回复:面试最重要的是回答面试人想听到的答案
-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-
♂
(112 bytes)
()
12/20/2007 postreply
18:32:43
•
要说method就不是function,那就说明method怎么call的..
-澳洲老土-
♂
(0 bytes)
()
12/20/2007 postreply
19:41:34