Monday, March 30, 2020

20 Ejb 3.0 Interview Questions Too Answers - Coffee J2ee

EJB interview questions are amount purpose of whatever Java J2EE interview. As EJB forms draw of piece of work concern layer for modern J2EE corporation application, Good noesis of EJB is expected from J2EE programmer. Purpose of these EJB interview questions is to rank an Idea almost what variety of questions you lot tin dismiss expression on J2EE in addition to EJB interviews. EJB was ever tough for Java programmer because of heavy weight architecture comprised amongst many interfaces e.g. habitation interface, remote interface, local interface, edible bean flat etc. It accept likewise much fourth dimension in addition to noesis to implement in addition to utilisation EJB inwards your Java spider web in addition to corporation application forget almost challenges posed past times application servers similar WebLogic or IBM WebSphere. All these occupation persist till EJB 2.0 which makes EJB infamous along amongst J2EE in addition to created path for Spring framework which is based on POJO. But amongst EJB 3.0, Enterprise Java Beans are dorsum 1 time again in addition to they are dorsum amongst bang. In this article I volition portion some EJB Interview questions from my collection. These EJB questions are from EJB 2.0 in addition to EJB 3.0 in addition to also related to telephone substitution concept of using Enterprise Java beans. By the agency I don't direct maintain reply of these Enterprise Java beans questions exactly I volition update the post 1 time I direct maintain answers of all these interview questions asked on EJB interviews. This article is divided inwards 2 category, inwards starting fourth dimension category nosotros volition run across some mutual EJB interview questions in addition to inwards instant category nosotros volition run across EJB 3.0 interview question, which is to a greater extent than pop similar a shot days. I direct maintain seen EJB enquiry on companies similar Capegemini, TCS, CTS, Infosys in addition to Wipro in addition to to a greater extent than oftentimes than non on finance domain projects



Common EJB Interview Questions inwards J2EE

1. What is Enterprise Java Beans (EJB) inwards J2EE ? What is wages of using EJB ?
This is the starting fourth dimension EJB question  asked to programmers on beginners in addition to intermediate level. Enterprise Java beans are J2EE cistron which is managed past times Container provided past times Application server in addition to encapsulate draw of piece of work concern logic in addition to forms dorsum goal of Enterprise Java application. Main wages of using EJB is to leverage amount services provided past times EJB container e.g. transaction management, persistence, safety etc. Also draw of piece of work concern logic encapsulate inwards EJB is adept multi-tier blueprint in addition to tin dismiss hold out used amongst unlike clients e.g. Web, Desktop in addition to mobile. Current version of EJB is EJB 3.0 which is based on annotation.



2. Can nosotros run EJB inwards spider web server similar Tomcat ?
One of the tricky interview enquiry on EJB. No you lot tin dismiss non run EJB inwards spider web server similar Tomcat. You demand application server similar Glassfish, WebLogic or Websphere to run Enterprise Java beans. One of the followup enquiry of this is What is deviation betwixt Application server in addition to spider web server. See the link for reply of that question.

3. What was shortcomings of EJB 2.0 ?
If you lot direct maintain mentioned inwards your resume that you lot direct maintain worked on EJB 2.0, therefore improve hold out prepared for this EJB interview question. It's non hard to reply if you lot direct maintain indeed worked inwards EJB 2.0. There are several hurting e.g. writing those local in addition to remote interfaces, likewise many boiler plate coding etc.

4. What is wages of putting draw of piece of work concern logic inwards EJB over stored procedure?
This is some other tough Java question on EJB interview. Putting complex draw of piece of work concern logic inwards stored physical care for is non a adept thought exactly its been at that topographic point for long time. Main wages of using EJB over stored physical care for is that you lot don't demand to port your SQL Stored physical care for code when you lot modify database e.g. shape Sybase to Oracle or Oracle to SQL Server.

5. What are the services provided past times EJB container ?
EJB interview questions are amount purpose of whatever  twenty EJB 3.0 Interview Questions in addition to Answers - Java J2EEContainer is 1 of the mind argue why Programmer should utilisation Enterprise Java beans. EJB container furnish several useful services similar :

1) life cycle administration of Enterprise Java beans (EJB).
2) Container manged transaction
3) Container managed persistent
4) Security etc

6. What is 2 stage commit? How do you lot create out distributed transaction inwards EJB
This is 1 of the most tricky Java question I direct maintain seen inwards EJB interviews. Two stage commit involves 1 Transaction director which controls whole commit process. If you lot direct maintain non used 2 stage commit or distributed transaction along amongst EJB therefore you lot demand to explore this topic inwards special to reply this EJB interview question.

Couple of to a greater extent than EJB interview questions whose reply volition hold out updated later.
7) EJB invocation is based upon which blueprint pattern ? What is Service locator blueprint pattern ?
8) How do you lot telephone telephone Enterprise Java beans from Servlet or JSP ?
9) What is deviation betwixt Session in addition to Entity beans ?
10) What is Java persistence API or JPA.
11) What is deviation betwixt stateless in addition to stateful Session beans ?
12) What is Session facade blueprint pattern used inwards EJB in addition to J2EE ?
13) What is deviation betwixt Session bean, Enttiry edible bean in addition to Message driven edible bean (MDB)
14) Can you lot create Thread inwards EJB ?

If you lot know reply of these EJB practise enquiry than delight portion every bit comment.

Top EJB 3.0 Interview Questions

In this department nosotros volition run across some EJB 3.0 Interview question. EJB 3.0 is the most pop version of EJB which surprisingly ease evolution of EJB past times using notation based approach. EJB 3.0 is also most pop EJB version inwards use.

1) What is mind deviation betwixt EJB 2.0 in addition to EJB 3.0 ?
Simple reply is utilisation of Java annotation, ease of evolution etc.

2) Can you lot yell few notation used inwards EJB 3.0 in addition to what does the do ?
This is some other uncomplicated EJB 3.0 interview enquiry which tin dismiss hold out easily reply if you lot direct maintain coded few EJB 3.0 beans. Some annotations used are @EJB, @PreDestory,  @PostConstruct etc.

3) Does EJB 3.0 supports dependency Injection ?

4) How to telephone telephone a EJB 3.0 edible bean from Servlet or JSP ?
Use @EJB annotation.

5) What are the issues you lot human face upwardly amongst EJB 3.0 ?

These were some of the EJB interview questions for practise if you lot are going to look inwards whatever Java or J2EE interview which requires EJB skills. There are non many J2EE programmer who empathise in addition to utilisation EJB really well. It was to a greater extent than hard when EJB 2.0 was roughly exactly much improve amongst EJB 3.0 in addition to EJB 3.1. Please portion if you lot direct maintain whatever other interesting EJB interview enquiry or if you lot know reply of whatever EJB enquiry shared here.

Further Learning
Top 10 JSP Interview Questions – Answered

No comments:

Post a Comment