Académique Documents
Professionnel Documents
Culture Documents
Tech Interviews
Prepare for job interviews with the questions and answers asked by high-tech employers
.NET C++ Da t a ba se Gen er a l Ha r dw a r e Ja v a Net w or k in g Pu zzles SA P A BA P
Search
T est in g
Un ix /Lin u x
VB
W eb dev
W in dow s
Jav a > > J2EE int erview quest ions and answers
Thanks to Sachin Rastogi for contributing these. 1 . What makes J2EE suit able for dist ribut ed mult it iered Applicat ions? - The J2 EE platform uses a m ultitiered distributed application m odel. Application logic is div ided into com ponents according to function, and the v arious application com ponents that m ake up a J2 EE application are installed on different m achines depending on the tier in the m ultitiered J2 EE env ironm ent to which the application com ponent belongs. The J2 EE application parts are: Client-tier com ponents run on the client m achine. Web-tier com ponents run on the J2 EE serv er. Business-tier com ponents run on the J2 EE serv er. Enterprise inform ation sy stem (EIS)-tier software runs on the EIS serv er. 2 . What is J2EE? - J2 EE is an env ironm ent for dev eloping and deploy ing enterprise applications. The J2 EE platform consists of a set of serv ices, application program m ing interfaces (APIs), and protocols that prov ide the functionality for dev eloping m ultitiered, web-based applications. 3 . What are t he component s of J2EE applicat ion? - A J2 EE com ponent is a self-contained functional software unit that is assem bled into a J2 EE application with its related classes and files and com m unicates with other com ponents. The J2 EE specification defines the following J2 EE com ponents: A. Application clients and applets are client com ponents. B. Jav a Serv let and Jav aServ er Pages technology com ponents are web com ponents. C. Enterprise Jav aBeans com ponents (enterprise beans) are business com ponents. D. Resource adapter com ponents prov ided by EIS and tool v endors. 4 . What do Ent erprise JavaBeans component s cont ain? - Enterprise Jav aBeans com ponents contains Business code, which is logic that solv es or m eets the needs of a particular business dom ain such as banking, retail, or finance, is handled by enterprise beans running in the business tier. All the business code is contained inside an Enterprise Bean which receiv es data from client program s, processes it (if necessary ), and sends it to the enterprise inform ation sy stem tier for storage. An enterprise bean also retriev es data from storage, processes it (if necessary ), and sends it back to the client program . 5. Is J2EE applicat ion only a web-based? - No, It depends on ty pe of application that client wants. A J2 EE application can be web-based or non-web-based. if an application client executes on the client m achine, it is a non-web-based J2 EE application. The J2 EE application can prov ide a way for users to handle tasks such as J2 EE sy stem or application adm inistration. It ty pically has a graphical user interface created from Swing or AWT APIs, or a com m and-line interface. When user request, it can open an HTTP connection to establish com m unication with a serv let running in the web tier. 6 . Are JavaBeans J2EE component s? - No. Jav aBeans com ponents are not considered J2 EE com ponents by the J2 EE specification. They are written to m anage the data flow between an application client or applet and com ponents running on the J2 EE serv er or between serv er com ponents and a database. Jav aBeans com ponents written for the J2 EE platform hav e instance v ariables and get and set m ethods for accessing the data
Must Have Tool for Business Owners. Access Anywhere. Try it for Free!
Dr. Batra's Hair Clinic Urgent Jobs at Cognizant Naukri.com - Register Now
A ds by Goog le
Government Vacancies
Apply for Jobs in the Gov ernm ent Sector. 1 00% Free, Register Now!
Qu ik r .com /Gov er n m en t -Jobs
Resources
Technology Question and Answer Website How to dance around the salary -expectation question
www.techinterviews.com/j2ee-interview-questions-and-answers
1/5
10/23/13
7.
8.
T utorials
AJAX Tutorials Dealing with y our job Getting a job Jav aScript tutorials Job interv iew tips from Yahoo! HotJobs My SQL tutorials Retiring from y our job Ruby on Rails tutorials Salary guide for IT jobs Self-em ploy m ent TechInterv iews guides in PDF Understanding pointers XML Tutorials XUL tutorials
9.
1 0.
11.
1 2.
RSS Feeds
All posts All com m ents
1 3. 1 4.
1 5.
1 6.
1 7 . What is deploy ment descript or? - A deploy m ent descriptor is an Extensible Markup Language (XML) text-based file with an .xm l extension that describes a com ponents deploy m ent settings. A J2 EE application and each of its m odules has its own deploy m ent descriptor. For exam ple, an enterprise bean m odule deploy m ent descriptor declares transaction attributes and security authorizations for an enterprise bean. Because deploy m ent descriptor inform ation is declarativ e, it can be changed without m odify ing the bean source code. At run tim e, the J2 EE serv er reads the deploy m ent descriptor and acts upon the com ponent accordingly . 1 8. What is t he EAR file? - An EAR file is a standard JAR file with an .ear extension, nam ed from Enterprise ARchiv e file. A J2 EE application with all of its m odules is deliv ered in EAR file. 1 9 . What is JTA and JTS? - JTA is the abbrev iation for the Jav a Transaction API. JTS is the abbrev iation for the Jav e Transaction Serv ice. JTA prov ides a standard interface and allows y ou to dem arcate transactions in a m anner that is independent of the transaction m anager im plem entation. The J2 EE SDK im plem ents the transaction m anager with JTS. But y our code doesnt call the JTS m ethods directly . Instead, it inv okes the JTA m ethods, which then call the lower-lev el JTS routines. Therefore, JTA is a high lev el transaction interface that y our application uses to control transaction. and JTS is a low lev el transaction interface and ejb uses behind the scenes (client code doesnt directly interact with JTS. It is based on object transaction serv ice(OTS) which is part of CORBA. 2 0. What is JAXP? - JAXP stands for Jav a API for XML. XML is a language for representing and describing text-based data which can be read and handled by any program or tool that uses XML APIs. It prov ides standard serv ices to determ ine the ty pe
www.techinterviews.com/j2ee-interview-questions-and-answers
2/5
10/23/13
21 .
22.
23.
24.
2 5.
T h is en t r y w a s post ed in Java . Book m a r k t h e perm alink . Pos t a com m ent or lea v e a t r a ck ba ck : Track back URL.
Walk-Ins Jobs
Search for Walk Ins Job postings - Find y our new job today . Indeed
w w w .in deed.co.in /W a lk -In s
Abhijit Paralikar
Posted 4/2/2007 at 11:50 am | Pe rmalink
www.techinterviews.com/j2ee-interview-questions-and-answers
3/5
10/23/13
amhed
Posted 8/20/2007 at 9:44 pm | Pe rmalink
Honestly , will the people y ou are interv iewing ev er use this Book knowledge when they are working? Sure they would if they were to teach J2 EE. But if it was a program m ing position or architectural position I doubt that they actually hav e any use for such broad and encom passing triv ia FAQs. Oh by the way I think I saw the answers as the technologies are described in books. I think y our questions are v ery INAPPROPRIATE. Interv iews for soft dev should not be the sam e as college test questions. If y ou interv iew this way , I would not be surprised that y oud get a couple of bookish people that do not know how to think for them selv es. Or let m e guess, these are the questions non technical people expect technical people to answer. One suggestion, let the people actually inv olv ed in the grunt work do the interv iewing and it would probably boost m orale.
cffgfg
Posted 8/28/2007 at 1:56 am | Pe rmalink
What are the com ponents of J2 EE application? - A J2 EE com ponent is a self-contained functional software unit that is assem bled into a J2 EE application with its related classes and files and com m unicates with other com ponents. The J2 EE specification defines the following J2 EE com ponents:
what is a component ?
Posted 3/24/2008 at 5:20 am | Pe rmalink
What are the j2 EE com ponents? A j2 ee com ponent is a self contained functional software unit that is assem bled into a j2 EE application with its related classes and files with other com ponents. The j2 EE spec defines the follwing com ponents:
enos76
Posted 1/28/2009 at 5:33 am | Pe rmalink
I find this FAQ useful for getting the big picture while preparing for the SCJA certification - Thanks
POS T A C OMME NT
www.techinterviews.com/j2ee-interview-questions-and-answers
4/5
10/23/13
Websi te
Com m en t
www.techinterviews.com/j2ee-interview-questions-and-answers
5/5