J2EE Technical Interview Questions For Freshers

What is J2EE? J2EE is the abbriviation of Java 2 Enterprise Edition.It is an environment for developing and deploying enterprise applicati...

What is J2EE?
J2EE is the abbriviation of Java 2 Enterprise Edition.It is an environment for developing and deploying enterprise applications in JAVA.specification for J2EE is defined by Sun Microsystems.J2EE has a set of services, application programming interfaces (APIs), and protocols,for developing n-tiered, web-based applications or non-web-based applications

What are the four components of J2EE application?
  • Application clients components. 
  • Servlet and JSP technology are web components.
  • Business components (JavaBeans). 
  • Resource adapter components
What are types of J2EE clients? 
Applets Application clients Java Web Start-enabled clients, by Java Web Start technology. Wireless clients, based on MIDP technology.

What is a J2EE component?
 A J2EE component is a software unit that is assembled into a J2EE application with related classes and files and it can communicate with other J2EE components Following are the example of J2EE Componet: a)Application clients and applets are client components. b)Java Servlet and JavaServer Pages technology components are web components c)Enterprise JavaBeans components (enterprise beans) are business components

What is a J2EE module?
A J2EE module has one or more J2EE components of the same container type along with one deployment descriptor of that type.

 What is a Java applet? 
An applet is a J2EE component that run on the client. In other words An applet is a program written in the Java language that can be included in an HTML page,like an image.

What is a Java application Client?
An application Client is a J2EE component that run on the client. An application is used to contain a full-function client non Web-based Java application that connects to the J2EE resources defined in the server

What is a Java servlet? 
 Java servlet is a J2EE component that run on the Server. In other words A Java servlet runs in a Web server or application server and provides server-side processing like accessing a database and/or e-commerce transactions etc.

What is a JavaServer Pages (JSP)? 
A JavaServer Pages (JSP) is a J2EE component that run on the Server. In other words Java Server Page (JSP) is a technology for providing the content or appearance of Web pages by using servlets, small programs etc specified in the Web pages.

What is Enterprise JavaBeans(EJB)?
 Enterprise JavaBeans(EJB) is the J2EE component that defines a component architecture for multi-tier client/server systems. (EJB) components (enterprise beans) are business components that run on the server.

What are considered as a web component?

What is JSF? 

What is Hibernate?

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.

What the Core interfaces are of hibernate framework?
  • Session Interface 
  • SessionFactory Interface 
  • Configuration Interface 
  • Transaction Interface Query and 
  • Criteria Interface
What is "application configuration resource file" ? 

 What is "archiving" ? 

 What is "asant" ?

What is authorization constraint ? 

What is B2B ? 
B2B stands for Business-to-business

Define connection pooling?
Connection pooling is a mechanism reuse the connection.which contains the number of already created object connection. So whenever there is a necessary for object, this mechanism is used to directly get objects without creating it.

What is HQL?
HQL stands for Hibernate Query Language. Hibernate allows to the user to express queries in its own portable SQL extension and this is called as HQL. It also allows the user to express in native SQL.

What are the Collection types in Hibernate ? 
set, List, Array, Map, Bag

Differentiate between .ear, .jar and .war files.

What is Struts? 

What is ActionErrors? 

What is ActionForm? 

What is action mapping?

What is servlet?

Servlet is pure java object or not? 
Yes, pure java object.

What are the phases of the servlet life cycle?
 The life cycle of a servlet consists of the following phases:

  • Servlet class loading 
  • Servlet instantiation 
  •  the init method 
  • Request handling (call the service method) 
  • Removal from service (call the destroy method)
What must be implemented by all Servlets?
The Servlet Interface must be implemented by all servlets

What is bean-managed persistence ?

What is binding (XML) ?

What is build file ? 
The XML file that contains one or more asant targets. A target is a set of tasks you want to be executed. When starting asant, you can select which targets you want to have executed. When no target is given, the project's default target is executed.

What is certificate authority ?

What is client-certificate authentication ?
 An authentication mechanism that uses HTTP over SSL, in which the server and, optionally, the client authenticate each other with a public key certificate that conforms to a standard that is defined by X.509 Public Key Infrastructure.

What is comment ?


Interview Questions 1915230860169315845

Post a Comment

Follow Us

Hot in week



Side Ads