Home / interview Question & Answers / J2EE Interview Questions and Answers For Freshers/Experienced Download

J2EE Interview Questions and Answers For Freshers/Experienced Download

J2EE Interview Questions and Answers

Before appearing for the J2EE Interview, you all are advised to go through the J2EE Interview Questions and Answers. Both freshers and experienced candidates are eligible to appear for J2EE Interview. So candidates check or also download the Best J2EE Interview Questions & Answers 2018 from this page.

J2EE is platform-independent, Java-centric surroundings from Sun for increasing, structure and organize Web-based projects applications online. This platform consists of a set of services, APIs, and protocols that offers the functionality for increasing, Web-based applications.

How Tricky Questions will be helpful?

After reading the below mentioned tricky J2EE questions, you can simply attempt the objective type and multiple choice type questions on J2EE. As we know that J2EE is very difficult language and the programmers create the web based contents using it.

To get rest details about J2EE Interview Questions for Experienced or Freshers, you need to go through the whole page which is well designed by the team members of www.recruitmentinboxx.com

J2EE Interview Questions and Answers

Ques1.)   What is J2EE?

Ans. J2EE is the acronym of Java 2 Enterprise Edition. The J2EE is a platform use to develop and deployment of multitier web-based applications and consist of set of services, API, and protocols.

Ques.2.)  what is J2EE module?

Ans. –A J2EE module consists of set of J2EE components for the identical container type and one component deployment descriptor of that type.

Read Now: You Will Be Rejected If You Reply These 5 Answers

Ques.3.)    What are the components of J2EE application?

Ans. –A J2EE component is a self-contained efficient software unit that is bring together into a J2EE application with its linked classes and files and communicates with other components. The J2EE specification defines –

  • Application clients and applets are client components.
  • Java Servlet and JavaServerPagesTM (JSPTM) technology components are web components.
  • Enterprise JavaBeansTM (EJBTM) components (enterprise beans) are business components.
  • Resource adapter components provided by EIS and tool vendors.

Ques.4.)  Tell four types of J2EE modules?

Ans.-

  • Application client module
  • Web module
  • Enterprise JavaBeans module
  • Resource adapter module

Ques.5.)    What does application client module contain?

Ans. –The application client module contains:

  • class files
  • an application client deployment descriptor.
  • Application client modules are packaged as JAR files with a .jar extension.

Check Out: In Which Color Interviewer Will Love To See You

Ques.6.)  What does web module contain?

Ans. – The web module contains:

  • JSP files
  • class files for servlets
  • GIF and HTML files, and
  • a Web deployment descriptor.
  • Web modules are packaged as JAR files with a .war (Web ARchive) extension.

Ques.7.)   Differentiate between Jar and War files?

Ans. – There are no structural differences between the files. They are all archived using zip-jar compression. However, they are intended for different purposes.

Jar files (files with a .jar extension) are intended to hold generic libraries of Java classes, resources, auxiliary files, etc.

War files (files with a .war extension) are intended to contain complete Web applications. In this context, a Web application is defined as a single group of files, classes, resources, .jar files that can be packaged and accessed as one servlet context.

Ques.8.)  Difference between Session bean and Entity bean?

Ans. – The Session bean and Entity bean are two main parts of EJB container.

Session Bean

  • represents a workflow on behalf of a client
  • one-to-one logical mapping to a client.
  • created and destroyed by a client
  • not permanent objects
  • lives its EJB container (generally) does not survive system shut down
  • two types: stateless and stateful beans

Entity Bean

  • represents persistent data and behavior of this data
  • can be shared among multiple clients
  • persists across multiple invocations
  • findable permanent objects
  • outlives its EJB container, survives system shutdown
  • two types: container managed persistence(CMP) and bean managed persistence (BMP)

Must Check: 5 Qualities An Interviewer Seeks In Candidate

Ques.9.) What is Applet?

Ans. –A J2EE component that usually executes in a Web browser but can execute in a variety of other applications or devices that support the applet programming model.

Ques.10.)  What is Applet container and application assembler?

Ans. – Applet container is that which provide support for the applet programming model. And Application assembler is who combines J2EE modules and components into deployable application units.

Ques.11) What are types of J2EE clients?

Ans:

  • Applets
  • Application clients
  • Java Web Start-enabled clients, by Java Web Start technology.
  • Wireless clients, based on MIDP technology.

Get Best Answer: Why Should We Hire You

Ques.12) What are considered as a web component?

Ans: Java Servlet and Java Server Pages technology components are web components. Servlets are Java programming language that dynamically receive requests and make responses. JSP pages execute as servlets but allow a more natural approach to creating static content

Ques.13) What is JSF?

Ans.) JavaServer Faces (JSF) is a user interface (UI) designing framework for Java web applications. JSF provide a set of reusable UI components, standard for web applications.JSF is based on MVC design pattern. It automatically saves the form data to server and populates the form date when display at client side.

Ques.14) What is the limitation of hibernate?

Ans: Limitation of Hibernate:

  • Slower in executing the queries than queries are used directly.
  • Only query language support for composite keys.
  • No shared references to value types.

Check Here: Interview Prep. Tips- By Experts

Ques.15) What are the advantage of hibernate?

Ans: Advanatages are

  • Hibernate is portable i mean database independent, Vendor independence.
  • Standard ORM also supports JPA
  • Mapping of Domain object to relational database.
  • Hibernate is better then plain JDBC.
  • JPA provider in JPA based applications.

Ques.16) Difference between save and saveorupdate

save() – This method in hibernate is used to stores an object into the database. It insert an entry if the record doesn’t exist, otherwise  not.

saveorupdate () –This method in the hibernate is used for updating the object using identifier. If the identifier is missing this method calls save(). If the identifier exists, it will call update method.

Ques.17) How to invoke stored procedure in hibernate?

Ans: { ? = call thisISTheProcedure() }

Must Check: 11 Common Interview Mistakes

Ques.18) What are the benefits of ORM?

Ans: Benefits of ORM are:

  • Productivity
  • Maintainability
  • Performance
  • Vendor independence

Ques.19) What is the file extension used for hibernate mapping file?

Ans: The name of the file should be like this : filename.hbm.xml

Do You Know: How To Crack Interview

Ques:20) What is the file name of hibernate configuration file?

Ans: The name of the file should be like this : hibernate.cfg.xml

Final Words

Dear candidates, the J2EE Interview Questions and Answers for Freshers/Experienced that we have provided above we hope that will be very beneficial to you. You may get more related articles by visiting www.recruitmentinboxx.com, so keep visiting us regularly.

You May Also Like To Check This Section

How To Prepare For InterviewHow to Dress For an Interview
Never Say These Things in InterviewPhone Interview Question And Answers
How To Give Self Introduction In InterviewLatest Private Jobs
Tips To Use Social Media For Job SearchTop 10 Highest Paying Jobs In India

Leave a Reply

Your email address will not be published. Required fields are marked *