good answers. I will talk about my opionion here.
For question 1, thread-safe is enough. Vector is sychronized, arraylist is not. That is the mjor concern when we should make a choice between these two. As a interviewee, you could mentiion arraylist is in collection family.
Q2. the difference between abstract class and interface are:
1. You can implement some in an abstract class, but no in an interface.
2. You can declare variable in an abstract class, static final only in an interface.
3. Subclasses only extend on abstract class, but can implement multiple interface.
4. No private members in an interface.
5. Abstract class outperforms interfaces.
Q3. MVC is a classic pattern which is not limited in jsp, servlet, and dao. View can be a standalone UI implemented in C#, controller can be business services in JBoss, and view just a html form. The main purpose of MVC is to decouple data and UI. But JSP, Servlet, and DAO is a good example.
回复:those are basic, but we need good answers,
所有跟帖:
•
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