- Home
- Computers & IT
- Java/J2EE Job Interview Companion
Java/J2EE Job Interview Companion
Book Description:
400+ Java/J2EE Interview questions with clear and concise answers for: job seekers (junior/senior developers, architects, team/technical leads), promotion seekers, pro-active learners and interviewers. Lulu top 100 best seller. Increase your earning potential by learning, applying and succeeding. Learn the fundamentals relating to Java/J2EE in an easy to understand questions and answers approach. Covers 400+ popular interview Q&A with lots of diagrams, examples, code snippets, cross referencing and comparisons. This is not only an interview guide but also a quick reference guide, a refresher material and a roadmap covering a wide range of Java/J2EE related topics. More Java J2EE interview questions and answers & resume resources at http://www.lulu.com/java-success
Table of contents
Outline_________________________________________________________________________________________ 3
Table of contents ________________________________________________________________________________ 5
What this book will do for you? ____________________________________________________________________ 7
Motivation for this book __________________________________________________________________________ 8
Key Areas Index ________________________________________________________________________________ 11
Java – Interview questions & answers _____________________________________________________________ 13
Java – Fundamentals _____________________________________________________________________________________ 14
Java – Swing ____________________________________________________________________________________________ 69
Java – Applet____________________________________________________________________________________________ 76
Java – Performance and Memory issues _____________________________________________________________________ 78
Java – Personal and Behavioral/Situational __________________________________________________________________ 83
Java – Behaving right in an interview________________________________________________________________________ 89
Java – Key Points ________________________________________________________________________________________ 91
Enterprise Java – Interview questions & answers ____________________________________________________ 94
Enterprise - J2EE Overview ________________________________________________________________________________ 95
Enterprise - Servlet______________________________________________________________________________________ 108
Enterprise - JSP ________________________________________________________________________________________ 126
Enterprise – JDBC & JTA_________________________________________________________________________________ 145
Enterprise – JNDI & LDAP ________________________________________________________________________________ 155
Enterprise - RMI ________________________________________________________________________________________ 159
Enterprise – EJB 2.x _____________________________________________________________________________________ 163
Enterprise - JMS ________________________________________________________________________________________ 180
Enterprise - XML ________________________________________________________________________________________ 190
Enterprise – SQL, Database, and O/R mapping_______________________________________________________________ 197
Enterprise - RUP & UML__________________________________________________________________________________ 206
Enterprise - Struts_______________________________________________________________________________________ 214
Enterprise - Web and Application servers ___________________________________________________________________ 218
Enterprise - Best practices and performance considerations ___________________________________________________ 222
Enterprise – Logging, testing and deployment _______________________________________________________________ 225
Enterprise – Personal and Behavioral/Situational_____________________________________________________________ 228
Enterprise – Software development process_________________________________________________________________ 230
Enterprise – Key Points __________________________________________________________________________________ 233
How would you go about…?_____________________________________________________________________ 238
Q 01: How would you go about documenting your Java/J2EE application? FAQ________________________________ 239
Q 02: How would you go about designing a Java/J2EE application? FAQ _____________________________________ 240
Q 03: How would you go about identifying performance and/or memory issues in your Java/J2EE application? FAQ_ 243
Q 04: How would you go about minimizing memory leaks in your Java/J2EE application? FAQ __________________ 244
Q 05: How would you go about improving performance in your Java/J2EE application? FAQ _____________________ 244
Q 06: How would you go about identifying any potential thread-safety issues in your Java/J2EE application? FAQ __ 245
Q 07: How would you go about identifying any potential transactional issues in your Java/J2EE application? FAQ __ 2466
Q 08: How would you go about applying the Object Oriented (OO) design concepts in your Java/J2EE application? FAQ
247
Q 09: How would you go about applying the UML diagrams in your Java/J2EE project? FAQ _____________________249
Q 10: How would you go about describing the software development processes you are familiar with? FAQ ________251
Q 11: How would you go about applying the design patterns in your Java/J2EE application? _____________________253
Q 12: How would you go about designing a Web application where the business tier is on a separate machine from the
presentation tier. The business tier should talk to 2 different databases and your design should point out the different
design patterns? FAQ____________________________________________________________________________________286
Q 13: How would you go about determining the enterprise security requirements for your Java/J2EE application? ___287
Q 14: How would you go about describing the open source projects like JUnit (unit testing), Ant (build tool), CVS
(version control system) and log4J (logging tool) which are integral part of most Java/J2EE projects? ________________292
Q 15: How would you go about describing Service Oriented Architecture (SOA) and Web services? FAQ ___________299
Emerging Technologies/Frameworks… ____________________________________________________________311
Q 01: What is Test Driven Development (TDD)? FAQ _______________________________________________________312
Q 02: What is the point of Test Driven Development (TDD)? What do you think of TDD?__________________________313
Q 03: What is aspect oriented programming (AOP)? Do you have any experience with AOP? _____________________313
Q 04: What are the differences between OOP and AOP? ____________________________________________________317
Q 05: What are the benefits of AOP?_____________________________________________________________________317
Q 06: What is attribute or annotation oriented programming? FAQ ___________________________________________317
Q 07: What are the pros and cons of annotations over XML based deployment descriptors? FAQ _________________318
Q 08: What is XDoclet? ________________________________________________________________________________319
Q 09: What is inversion of control (IoC) (also known more specifically as dependency injection)? FAQ_____________319
Q 10: What are the different types of dependency injections? FAQ ___________________________________________321
Q 11: What are the benefits of IoC (aka Dependency Injection)? FAQ _________________________________________322
Q 12: What is the difference between a service locator pattern and an inversion of control pattern? _______________323
Q 13: Why dependency injection is more elegant than a JNDI lookup to decouple client and the service? ___________323
Q 14: Explain Object-to-Relational (O/R) mapping? ________________________________________________________323
Q 15: Give an overview of hibernate framework? FAQ ______________________________________________________324
Q 16: Explain some of the pitfalls of Hibernate and explain how to avoid them? Give some tips on Hibernate best
practices? FAQ_________________________________________________________________________________________333
Q 17: Give an overview of the Spring framework? What are the benefits of Spring framework? FAQ_______________334
Q 18: How would EJB 3.0 simplify your Java development compared to EJB 1.x, 2.x ? FAQ ______________________337
Q 19: Briefly explain key features of the JavaServer Faces (JSF) framework? __________________________________339
Q 20: How would the JSF framework compare with the Struts framework? How would a Spring MVC framework compare
with Struts framework?___________________________________________________________________________________341
Sample interview questions… ____________________________________________________________________344
Java___________________________________________________________________________________________________345
Web components________________________________________________________________________________________345
Enterprise______________________________________________________________________________________________345
Design_________________________________________________________________________________________________347
General ________________________________________________________________________________________________347
GLOSSARY OF TERMS__________________________________________________________________________348
RESOURCES __________________________________________________________________________________350
INDEX ________________________________________________________________________________________352