Java / J2EE Interview Questions You'll Most Likely Be Asked
()
About this ebook
- 280 Java/J2EE Interview Questions
- 75 HR Interview Questions
- Real life scenario based questions
- Strategies to respond to interview questions
- 2 Aptitude Tests
Other titles in Java / J2EE Interview Questions You'll Most Likely Be Asked Series (30)
Oracle Database Administration Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 5 out of 5 stars5/5SQL Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsC & C++ Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced JAVA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSAP HANA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsC# Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsHibernate, Spring & Struts Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced C++ Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsORACLE PL/SQL Interview Questions You'll Most Likely Be Asked Rating: 5 out of 5 stars5/5Java / J2EE Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsData Structures & Algorithms Interview Questions You'll Most Likely Be Asked Rating: 1 out of 5 stars1/5JavaScript Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsPython Interview Questions You'll Most Likely Be Asked Rating: 2 out of 5 stars2/5Hadoop BIG DATA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSoftware Testing Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsJSP-Servlet Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAutomated Software Testing Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsLinux System Administrator Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCORE JAVA Interview Questions You'll Most Likely Be Asked Rating: 4 out of 5 stars4/5Base SAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced SAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsIBM WebSphere Application Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCCNA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCloud Computing Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsSAS Programming Guidelines Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsOperating Systems Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsRESTful Java Web Services Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsUNIX Shell Programming Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdministrator & Helpdesk Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratings
Read more from Vibrant Publishers
Digital SAT Reading and Writing Practice Questions: Test Prep Series Rating: 5 out of 5 stars5/5Operations and Supply Chain Management Essentials You Always Wanted To Know: Self Learning Management Rating: 5 out of 5 stars5/5GRE Reading Comprehension: Detailed Solutions to 325 Questions: Test Prep Series Rating: 5 out of 5 stars5/5Writing Impressive College Essays: Test Prep Series Rating: 0 out of 5 stars0 ratingsGMAT Analytical Writing: Solutions to the Real Argument Topics: Test Prep Series Rating: 4 out of 5 stars4/5GRE Master Wordlist: 1535 Words for Verbal Mastery: Test Prep Series Rating: 4 out of 5 stars4/5Python Essentials You Always Wanted to Know: Self Learning Management Rating: 5 out of 5 stars5/5GRE Words In Context: The Complete List: Test Prep Series Rating: 5 out of 5 stars5/5Organizational Behavior Essentials You Always Wanted To Know: Self Learning Management Rating: 3 out of 5 stars3/5HR Analytics Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5Social Media Marketing Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5Core Java Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 4 out of 5 stars4/5Data Analytics Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5GRE Analytical Writing: Solutions to the Real Essay Topics - Book 1: Test Prep Series Rating: 5 out of 5 stars5/5GRE Text Completion and Sentence Equivalence Practice Questions: Test Prep Series Rating: 4 out of 5 stars4/5GRE Verbal Reasoning Supreme: Study Guide with Practice Questions: Test Prep Series Rating: 4 out of 5 stars4/5GRE Analytical Writing Supreme: Solutions to the Real Essay Topics: Test Prep Series Rating: 5 out of 5 stars5/5Principles of Management Essentials You Always Wanted To Know: Self Learning Management Rating: 5 out of 5 stars5/5Innovative Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSales Management Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5Organizational Development Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5HR Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 0 out of 5 stars0 ratingsPersonal Finance Essentials You Always Wanted to Know: Self Learning Management Rating: 3 out of 5 stars3/5GRE Analytical Writing: Solutions to the Real Essay Topics - Book 2: Test Prep Series Rating: 5 out of 5 stars5/5Business Strategy Essentials You Always Wanted To Know: Self Learning Management Rating: 5 out of 5 stars5/5Time Management Essentials You Always Wanted To Know: Self Learning Management Rating: 4 out of 5 stars4/5Blockchain Essentials You Always Wanted To Know: Self Learning Management Rating: 0 out of 5 stars0 ratingsFinancial Management Essentials You Always Wanted to Know: 5th Edition: Self Learning Management Rating: 5 out of 5 stars5/5Winning Strategies For ACT Essay Writing: With 15 Sample Prompts: Test Prep Series Rating: 5 out of 5 stars5/5
Related to Java / J2EE Interview Questions You'll Most Likely Be Asked
Titles in the series (33)
SQL Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsC & C++ Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced JAVA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSAP HANA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsC# Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsHibernate, Spring & Struts Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced C++ Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsORACLE PL/SQL Interview Questions You'll Most Likely Be Asked Rating: 5 out of 5 stars5/5Java / J2EE Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsData Structures & Algorithms Interview Questions You'll Most Likely Be Asked Rating: 1 out of 5 stars1/5JavaScript Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsPython Interview Questions You'll Most Likely Be Asked Rating: 2 out of 5 stars2/5Hadoop BIG DATA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSoftware Testing Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsJSP-Servlet Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAutomated Software Testing Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsLinux System Administrator Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCORE JAVA Interview Questions You'll Most Likely Be Asked Rating: 4 out of 5 stars4/5Base SAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdvanced SAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsIBM WebSphere Application Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCCNA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsCloud Computing Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsSAS Programming Guidelines Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsOperating Systems Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsRESTful Java Web Services Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsUNIX Shell Programming Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsAdministrator & Helpdesk Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSAS Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratings
Related ebooks
Java: Advanced Guide to Programming Code with Java: Java Computer Programming, #4 Rating: 0 out of 5 stars0 ratingsLearn JSP in 24 Hours Rating: 0 out of 5 stars0 ratingsOCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 Rating: 5 out of 5 stars5/5Mastering JAVA Programming for Beginners Rating: 0 out of 5 stars0 ratingsJAVA: Java Programming for beginners teaching you basic to advanced JAVA programming skills! Rating: 0 out of 5 stars0 ratingsJava SE 21 Developer Study Guide Rating: 5 out of 5 stars5/5Java: Best Practices to Programming Code with Java Rating: 0 out of 5 stars0 ratingsJava 9 Programming By Example Rating: 4 out of 5 stars4/5Mastering Java: A Comprehensive Guide to Programming Excellence Category Rating: 0 out of 5 stars0 ratingsJava: Beginner's Guide to Programming Code with Java: Java Computer Programming Rating: 0 out of 5 stars0 ratingsJAVA for Beginner's Crash Course: Java for Beginners Guide to Program Java, jQuery, & Java Programming Rating: 4 out of 5 stars4/5Mastering Core Java: From Basics to Expert Proficiency Rating: 0 out of 5 stars0 ratingsIntroduction to JVM Languages Rating: 0 out of 5 stars0 ratingsJava/J2EE Design Patterns Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsAdvanced JAVA Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsHibernate, Spring & Struts Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsRESTful Java Web Services Interview Questions You'll Most Likely Be Asked: Second Edition Rating: 0 out of 5 stars0 ratingsCORE JAVA Interview Questions You'll Most Likely Be Asked Rating: 4 out of 5 stars4/5Java Web Developer A Complete Guide Rating: 0 out of 5 stars0 ratingsPuzzles in Java: Shaping Beginners Rating: 1 out of 5 stars1/5JavaScript Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsJava and Java EE Interview Preparations Rating: 0 out of 5 stars0 ratingsJava servlet Second Edition Rating: 0 out of 5 stars0 ratingsSpring and Spring Boot Interview Questions and Answers. Tech interviewer’s notes Rating: 5 out of 5 stars5/5Java Core Interview Questions and Answers. Tech interviewer’s notes Rating: 1 out of 5 stars1/5Java Multithreading Interview Questions And Answers Rating: 0 out of 5 stars0 ratingsJava Core Interview in Australia. Questions and Answers. Tech interviewer’s notes Rating: 0 out of 5 stars0 ratings
Programming For You
Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsBeginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5C All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5Learn NodeJS in 1 Day: Complete Node JS Guide with Examples Rating: 3 out of 5 stars3/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5The 1 Page Python Book Rating: 2 out of 5 stars2/5Beginning Programming with Python For Dummies Rating: 3 out of 5 stars3/5Hacking Electronics: Learning Electronics with Arduino and Raspberry Pi, Second Edition Rating: 0 out of 5 stars0 ratingsPython Data Structures and Algorithms Rating: 5 out of 5 stars5/5Python for Data Science For Dummies Rating: 0 out of 5 stars0 ratings
Reviews for Java / J2EE Interview Questions You'll Most Likely Be Asked
0 ratings0 reviews
Book preview
Java / J2EE Interview Questions You'll Most Likely Be Asked - Vibrant Publishers
Java / J2EE
Interview Questions
You'll Most Likely Be Asked
Job Interview Questions Series
www.vibrantpublishers.com
*****
Java / J2EE Interview Questions You'll Most Likely Be Asked
Copyright 2021, By Vibrant Publishers, USA. All rights reserved. No part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior permission of the publisher.
This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. The author has made every effort in the preparation of this book to ensure the accuracy of the information. However, information in this book is sold without warranty either expressed or implied. The Author or the Publisher will not be liable for any damages caused or alleged to be caused either directly or indirectly by this book.
Vibrant Publishers books are available at special quantity discount for sales promotions, or for use in corporate training programs. For more information please write to bulkorders@vibrantpublishers.com
Please email feedback / corrections (technical, grammatical or spelling) to spellerrors@vibrantpublishers.com
To access the complete catalogue of Vibrant Publishers, visit www.vibrantpublishers.com
*****
Table of Contents
1. Architectures and Protocols
2. Applicability and Best Practices
3. Servlets
4. JSP
5. EJB
6. Internationalization and Localization
7. Design Patterns
8. Messaging
9. Security and Legacy Connectivity
HR Questions
INDEX
*****
Architectures and Protocols
1: What is the difference between a Web Server and an Application Server?
Answer:
A Web Server works over the Internet. It uses the HTTP protocol to send the client requests over the Internet on to the server which is located elsewhere and retrieves the information requested from the server or the posts the information sent on the server. ASP, JSP, Servlets, server side Javascript and CGI scripts work for the Web Server. The Web server simply acts as the middle layer passing on the requests or retrieving the requests and provides the HTML page results. It does not involve in any processing or data handling. An Application server provides the business logic to the client using the HTTP or other protocols. The Application server can be a GUI which involves some business logic or data processing programs running on a computer, a web server or other application servers. It exposes the business logic to the client.
2: What all technologies are included in the J2EE architecture?
Answer:
The J2EE architecture includes the following technologies:
a) JAX – RPC which is the Java API for XML based RPC
b) JSP or Java Server Pages
c) EJB or Enterprise Java Beans
d) Java Servlets
e) J2EE Connector Architecture
f) J2EE Management Model
g) J2EE Deployment API
h) JMX or Java Management Extensions
i) J2EE Authorization Contract for Containers
j) JAXR or Java API for XML Registries
k) JMS or Java Message Service
l) JNDI or Java Naming and Directory Interface
m) JTA or Java Transaction API
n) CORBA or the Common Object Request Broker Architecture
o) JDBC which is the Java Data Base Connectivity API
3: What are the benefits of Springs?
Answer:
The Java Spring framework is an open source development framework which can be used to create various sorts of Java Applications including Web Servers. It consists of the JTA, EJB, remote API, JDBC, JMX and JMS which makes the framework perfect for creating all sorts of applications. The Spring framework is a lightweight framework with respect to the size and simplicity. The Spring framework supports Inversion of control which enables loose coupling. It is based on Aspect Oriented Programming or AOP which separates the business logic from the system software. Spring’s MVC framework provides a good alternative to other web frameworks. It also provides JTA and Exception handling.
4: Differentiate between SAX and DOM Parsers
Answer:
Both SAX and DOM parsers are used to parse XML documents. The major differences between SAX and DOM parsers are:
a) SAX means Simple API for XML and DOM means Document Object Model.
b) The SAX parser parses the document one node at a time whereas the DOM parser loads the entire document into the memory first and then processes the node.
c) Since the SAX parses on the go, it does not use the memory whereas the DOM uses the memory to store the entire XML document.
d) We cannot modify the XML tree, cannot add or delete nodes in SAX while using DOM we can.
e) SAX supports top to bottom traversing while DOM supports all types of traversing.
f) SAX does not maintain comments while DOM maintains comments
g) SAX parser is faster as it parses node by node and the DOM parser is a little slower since it loads the entire XML document into the memory first and then parses it.
5: What is the difference between a component and a service?
Answer:
A J2EE component is a smaller unit of application software used for a particular purpose. Applets, Servlets, Session beans, Entity beans WAR, JAR and resource adapters are all different components of J2EE. A Service is in J2EE can be considered as the next level to distributed component. It is a component that can be used remotely synchronously or asynchronously. This includes components such as the RPC, Messaging system, Sockets and web services. A service should have a well-defined service contract, is independent and self-contained.
6: What are the design goals of J2EE architecture?
Answer:
The following are the design goals of J2EE architecture:
a) Service Availability: The application should be available 24*7. The business depends on the application without the need for customer service representatives
b) Data Connectivity: The application should be able to connect to mainframe systems and other legacy systems to ensure business functions as usual
c) Accessibility: User should be able to connect the application from anywhere and from any electronic devices
d) User Interaction: The user should be able to connect to the application from desktop, laptop, PDA, and mobile
e) Flexibility: The architecture should be created in such a way that the developer just concentrates on the business component model (business logic) and the rest of the services are handled by the server
7: What are the roles of J2EE Architect?
Answer:
The following are the roles of J2EE architect:
a) Visualizing the behavior of the system
b) Creating the system blue print
c) Defining the way how the system elements work together
d) Defining non-functional and functional requirements
e) Integrating non-functional requirements into the functional system
8: What is the difference between architecture and design?
Answer:
Architecture defines the structural issues, communication protocols, data access, synchronization, and subsystems’ classification. It also defines the architectural design of the component interfaces.
In Design, we define the components to be created for each interface, the inputs, the outputs, algorithms, and data structures. In short, the designers describe each component’s internal details.
9: What are the activities performed in Architectural Analysis?
Answer:
The following activities will be performed in Architectural Analysis:
a) Use case diagram: This is developed to depict the high level system functionality
b) Class Diagram: This is developed to depict the functionality as classes and methods
c) Collaboration Diagram: This is developed to depict how each class talk to each other
d) Sequence Diagram: This is developed to depict the operation sequence
10: What are the activities performed in Architectural Design?
Answer:
The following activities will be performed in Architectural Design:
a) The framework (example: Remote Method Invocation) to be used will be decided
b) The software and hardware requirements are defined
c) The performance parameter and the approach to achieve will be defined
d) Analyze for reusing existing components or technology
e) Define the business logic, security, and performance of the system
11: What are the activities performed in the object oriented design?
Answer:
The following activities will be performed in object oriented design:
a) Decide on how classes interact with packages
b) Create dependency diagrams
c) Create deployment diagrams
d) Decide if the components (software) reside in deployment folder
12: What are the components of multi-tier architecture?
Answer:
The following are the components of multi-tier architecture:
a) Presentation Tier: The front end component is present in this tier which is used to display the presentation
b) Resource Tier: The back end component is present in this tier which is used to communicate with database
c) Business Tier: The component present in this tier is used to provide business logic for the system
13: What are the advantages of multi-tier client server architecture?
Answer:
The following are the advantages of multi-tier client server architecture:
a) Changes to business logic or user interface can be made independently
b) The client accesses data easily without knowing where data comes from and how many servers available for the system
c) The DB (database) connections can be pooled so that the data can be shared for several users without making DB request for each user
d) The middle tier component (business logic) can be written in any standard programming languages such as C or Java
14: What are the responsibilities of the bean developer?
Answer:
The following are the responsibilities of the bean developer:
a) Write the systems business logic in java
b) Integrate java components with third party components
c) Control access and set transaction parameters
d) Create home interface to find the beans and remote interface to create business logic
e) Create the deployment descriptor xml
15: What are the responsibilities of application assembler?
Answer:
The following are the responsibilities of application assembler:
a) Build presentation layer i.e., user interface
b) Specify the requirements of transaction management
c) Set transaction parameters for all the bean’s methods
d) Define security roles and assign permissions