Generally, what I have been asked, and what I ask in turn, is simply to describe some patterns. The most common one people ask about is Factory/Abstract Factory. Listener and Iterator are common, too. Often you will be asked to give an example, and/or to cite an example from the Java APIs.
quote from my last interview : "Do you know UML?" -Yes I cleared 486, look on my resume, it covers notation and design. "next question." This does not answer your question but from my experience, if you have the certification and you look like you know, they assume you know.
Originally posted by Lee Xu: Does anyone have pattern/UML related interview questions? Thanks
Thought I'd describe how I use the UML since I do use patterns quite a lot. Personally, I dislike the UML. On the other hand, I won't work on a project without it. Sounds like a contradiction? Well, yes and no. What I don't like about the UML is that it is too implementation oriented. I believe it should be much more conceptually oriented and that's how I use it. I just like a model to give me a general understandin of what is happening, what's the architecture. Details like class members are the class' business. I shouldn't see them from outside the class. THis breaks the OO mandate that objects are responsible for themselves. On the other hand, not using UML means I can only see what's going on from text or code. Both too hard to get a big picture from. If no one has taken the time to write down the architecture at least at a conceptual level, then I get very nervous.
Alan Shalloway.<BR>Look for Jim Trott and my book: <A HREF="http://www.amazon.com/exec/obidos/ASIN/0201715945/ref=ase_electricporkchop/103-0514572-3811868" TARGET=_blank rel="nofollow">Design Patterns Explained</A><BR>Visit our site <A HREF="http://www.netobjectives.com" TARGET=_blank rel="nofollow">Net Objectives</A>.<BR>Visit our <A HREF="http://www.netobjectives.com/dpexplained/index.html" TARGET=_blank rel="nofollow">Design Patterns Explained Community of Practice</A><BR>Check out our <A HREF="http://www.netobjectives.com/xml/xml_cdrom_info.htm" TARGET=_blank rel="nofollow">CDROM based audio training in XML</A>
Joined: Jul 06, 2000
Originally posted by Alan Shalloway: What I don't like about the UML is that it is too implementation oriented. I believe it should be much more conceptually oriented and that's how I use it.
IMHO: That is the beauty of the UML. It is meta-language after all. Although I often find my self in position when I treat diagrams (specially conceptual class diagrams at early inception) from implementation point of view. I think it is sort of professional deviation as I am use to thinking about classes as of types in OO programming sense rather then in the real world meaning of class.
Originally posted by Bala Rajamani: Hi, I am new to Patterns. Do I need to know UML in order to learn Design Patterns?
UML can be used to represent a pattern but it is absolutely not necessary to know UML to learn about Design Patterns. For more information on patterns, check out http://www.hillside.net/patternsmain.htm for the Hillside patterns group's pages and http://www.c2.com/cgi/wiki?PortlandPatternRepository for the Portland Pattern Repository wiki. If you want to be really hardcore, you can go and pick up a copy of Design Patterns: Elements of reusable software (I think that's the exact title) by Gamma, Vlissides, Helm and Johnson. [This message has been edited by Iain Lowe (edited October 03, 2001).]