Java, J2EE Interview Questions: the Basics
As part of our Java Tutorials program, we will list a number of interview questions to aid in a better understaing of Java and J2EE and, hopefully, provide a greater likelihood of getting a job. Let us begin with the basics:
1. What is meant by J2EE?
J2EE is an abreviation for Java 2 Platform Enterprise Edition
2. What is the purpose of J2EE?
The purpose of J2EE is to provide a component based platform in a multitier application model with transaction management, web services and reusable component support.
3. What is the tier structure of the typical J2EE application?
A typical J2EE application consists of the following tiers/machines: the client machine (browser/non-browser application), the J2EE server (an application server such as Oracle, JBoss, GlassFish, Tomcat) and a database.
4. What are J2EE components?
Components are self-contained software units written in java that, when combined, are part of a larger application. A common misconception among novice developers is that these components are written by one institution. It is quite common to purchase components or software applications and then integrate them into the application server environment. Examples of a component are as follows:
- Client components - application/applets
- Web component - servlets/JSPs
- Business component - enterprise java bean
- Resource adapters - provided by tool vendors/EIS
5. What are J2EE clients?
J2EE clients are either web clients or application clients. The web client connects to the server by way of Transmission Control Protocol, TCP, with non-persistent connections and handles all communication through markup languages i.e. XML or HTML. Application clients connect to the server via RMI with persistent connections and typically provide the user with a richer interface for handling more sophisticated tasks. Such tasks may include handling user generated sql calls, testing electrical grids or any of a number of other actions that are not appropriate or possible on the net.
6. What are Servlets?
Servlets are a library of Java classes created to handle and respond to incoming requests. Most often, these are http requests but can be used for other client-server protocols. This technology includes, but is not limited to, Java Server Pages, JSTL, Scriplets and much more. They are the basis of many frameworks such as Wicket, Java Server Faces (JSF), Struts 1 & 2 and others.
7. Explain the different types of enterprise beans.
Session Bean - a software component, created for whatever reason, whose lifetime is dependent upon the length of the conversation it has with the client. It deletes itself after it completes the executable task.
Entity Bean - unlike a session bean, an entity bean persists data to a row in a database so that when a server is shut down, the information can be retrieved.
Message Driven Bean - uses asynchronous message handling to receive Java Message Service messages. Depending upon how the developer configures this bean and the incoming messages, messages may be persisted to a database or, like a session bean, lost enroute in the event of a server crash.
8. What is a J2EE container?
A container is an interface between a component and low-level platform specific functionality which supports the component i.e. how components communicate with one another, how they are defined and accessed, multi-threading ...
9. What is meant by J2EE assembly process?
The process of specifying the container and the application settings.
10. What does it mean to pack a J2EE application?
Compressing files in java means to place them into a Java Archive file (JAR) which is akin to a zip file. In a J2EE application, such a file in referred to as an Enterprise Archive file (EAR) or a JAR file with a .ear extension. Another compressed file in java is a Web Archive file (WAR) which is a compressed collection of java web files. Like the EAR file, it, too, has a unqiue extenstion: .war. The reason for compression lies in the need to ensure that files are not lost and that the application footprint (the size of the applcation), is not exceedingly large.
11. What is a J2EE deployment descriptor?
Deployment descriptors are XML files with a .xml extension that describe the deployment settings of an application. There are two types of deployment descriptors in J2EE: J2EE and runtime. The J2EE descriptor is used to configure the deployment descriptor settings; the runtime descriptor is used to configure the J2EE implementation parameters.
other blog entries
Course Directory [training on all levels]
- .NET Classes
- Agile/Scrum Classes
- Ajax Classes
- Android and iPhone Programming Classes
- Blaze Advisor Classes
- C Programming Classes
- C# Programming Classes
- C++ Programming Classes
- Cisco Classes
- Cloud Classes
- CompTIA Classes
- Crystal Reports Classes
- Design Patterns Classes
- DevOps Classes
- Foundations of Web Design & Web Authoring Classes
- Git, Jira, Wicket, Gradle, Tableau Classes
- IBM Classes
- Java Programming Classes
- JBoss Administration Classes
- JUnit, TDD, CPTC, Web Penetration Classes
- Linux Unix Classes
- Machine Learning Classes
- Microsoft Classes
- Microsoft Development Classes
- Microsoft SQL Server Classes
- Microsoft Team Foundation Server Classes
- Microsoft Windows Server Classes
- Oracle, MySQL, Cassandra, Hadoop Database Classes
- Perl Programming Classes
- Python Programming Classes
- Ruby Programming Classes
- Security Classes
- SharePoint Classes
- SOA Classes
- Tcl, Awk, Bash, Shell Classes
- UML Classes
- VMWare Classes
- Web Development Classes
- Web Services Classes
- Weblogic Administration Classes
- XML Classes
- VMware vSphere 8.0 Boot Camp
9 December, 2024 - 13 December, 2024 - Linux Fundaments GL120
9 December, 2024 - 13 December, 2024 - Microsoft Azure AI Fundamentals (AI-900T00)
25 November, 2024 - 25 November, 2024 - VMware vSphere 8.0 with ESXi and vCenter
9 December, 2024 - 13 December, 2024 - Ruby on Rails
5 December, 2024 - 6 December, 2024 - See our complete public course listing
did you know? HSG is one of the foremost training companies in the United States
Our courses focus on two areas: the most current and critical object-oriented and component based tools, technologies and languages; and the fundamentals of effective development methodology. Our programs are designed to deliver technology essentials while improving development staff productivity.
An experienced trainer and faculty member will identify the client's individual training requirements, then adapt and tailor the course appropriately. Our custom training solutions reduce time, risk and cost while keeping development teams motivated. The Hartmann Software Group's faculty consists of veteran software engineers, some of whom currently teach at several Colorado Universities. Our faculty's wealth of knowledge combined with their continued real world consulting experience enables us to produce more effective training programs to ensure our clients receive the highest quality and most relevant instruction available. Instruction is available at client locations or at various training facilities located in the metropolitan Denver area.
Upcoming Classes
- VMware vSphere 8.0 Boot Camp
9 December, 2024 - 13 December, 2024 - Linux Fundaments GL120
9 December, 2024 - 13 December, 2024 - Microsoft Azure AI Fundamentals (AI-900T00)
25 November, 2024 - 25 November, 2024 - VMware vSphere 8.0 with ESXi and vCenter
9 December, 2024 - 13 December, 2024 - Ruby on Rails
5 December, 2024 - 6 December, 2024 - See our complete public course listing
consulting services we do what we know ... write software
The coaching program integrates our course instruction with hands on software development practices. By employing XP (Extreme Programming) techniques, we teach students as follows:
Configure and integrate the needed development tools
MOntitor each students progress and offer feedback, perspective and alternatives when needed.
Establish an Action plan to yield a set of deliverables in order to guarantee productive learning.
Establish an Commit to a deliverable time line.
Hold each student accountable to a standard that is comparable to that of an engineer/project manager with at least one year's experience in the field.
These coaching cycles typically last 2-4 weeks in duration.
Business Rule isolation and integration for large scale systems using Blaze Advisor
Develop Java, .NET, Perl, Python, TCL and C++ related technologies for Web, Telephony, Transactional i.e. financial and a variety of other considerations.
Windows and Unix/Linux System Administration.
Application Server Administration, in particular, Weblogic, Oracle and JBoss.
Desperate application communication by way of Web Services (SOAP & Restful), RMI, EJBs, Sockets, HTTP, FTP and a number of other protocols.
Graphics Rich application development work i.e. fat clients and/or Web Clients to include graphic design
Performance improvement through code rewrites, code interpreter enhancements, inline and native code compilations and system alterations.
Mentoring of IT and Business Teams for quick and guaranteed expertise transfer.
Architect both small and large software development systems to include: Data Dictionaries, UML Diagrams, Software & Systems Selections and more