Join Our Email Alerts-Subscribe
Important Note:Login & Check Your Email Inbox and Activate Confirmation Link


Enter Your Email :

Copyright Disclaimer:
Section 107 of the Copyright Act Fair Use Contents .
We are forwarding content link(s) from our website to content website & We are not serving any contents.
Main Source:Google.com.All the Content PDF link(s) is/are obtained from GoogleSearch
for the purpose of Education & Teaching Intention. Not for commercial purpose.
Technicalsymposium.com is not liable/responsible for any copyright issues.


J2EE Materials-Free Download



11) Difference between save and saveorupdate

save() – This method in Hibernate is used to stores an object in the database. It inserts 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. 

12) Difference between load and get method?

load() can’t find the object from cache or database, an exception is thrown, and the load() method never returns null. get() method returns null if the object can’t be found. The load() method may return a proxy instead of a real persistent instance get() never returns a proxy. 

13) How to invoke a stored procedure in hibernate?

{ ? = call thisISTheProcedure() }

14) What are the benefits of ORM?

• Productivity

• Maintainability

• Performance

• Vendor independence

15) What are the Core interfaces of Hibernate framework?

• Session Interface

• SessionFactory Interface

• Configuration Interface

• Transaction Interface

• Query and Criteria Interface

16) What is the file extension used for hibernate mapping file?

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

17) What is the file name of hibernate configuration file?

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

19) How to add Hibernate mapping file in hibernate configuration file?

By mapping resource=” filename.hbm.xml”/

20) Define connection pooling?

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

21) What is the Hibernate proxy?

An object proxy is just a way to avoid retrieving an object until you need it. Hibernate 2 does not proxy objects by default. 

23) What is HQL?

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

24) What are the Collection types in Hibernate?

Set, List, Array, Map, Bag are collection type in Hibernate.

25) What is a thin client?

A thin client is a program interface to the application that does not have any operations like the query of databases, execute complex business rules, or connect to legacy applications. 

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

.jar files: These files are with the .jar extension. The .jar files contain the libraries, resources and accessories files like property files. 

.war files: These files are with the .war extension. The .war file contains JSP, HTML, javascript and other files necessary for the development of web applications. 

.ear files: The .ear file contains the EJB modules of the application. 

27) What is the JSP tag?

In JSP tags can be divided into four different types.

• Directives

• Declarations

• Scriplets

• Expressions

30) What is the EAR file?

An EAR file is a JAR file with an .ear extension. A J2EE application with all of its modules is delivered in an EAR file.

32) What are Struts?

Struts framework is a Model-View-Controller(MVC) architecture for designing large-scale applications. It is a combination of Java Servlets, JSP, Custom tags, and message. Struts help you to create an extensible development environment for your application, based on published standards and proven design patterns. Model in many applications represents the internal state of the system as a set of one or more JavaBeans.The View is most often constructed using JavaServer Pages (JSP) technology.The Controller is focused on receiving requests from the client and producing the next phase of the user interface to an appropriate View component. The primary component of the Controller in the framework is a servlet of class ActionServlet. This servlet is configured by defining a set of ActionMappings. 

33.What is ActionErrors? 

ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.The default implementation attempts to forward to the HTTP version of this method. Holding request parameters mapping and request and returns set of validation errors, if validation failed; an empty set or null 

34) What is ActionForm?

ActionForm is a Java bean that associates one or more ActionMappings. A java bean become FormBean when extend org.apache.struts.action.ActionForm class. ActionForm object is automatically populated on the server side which data has been entered by the client from UI. ActionForm maintains the session state for a web application. 

35) What is action mapping??

In action mapping, we specify action class for particular URL ie path and different target view ie forwards on to which request response will be forwarded.The ActionMapping represents the information that the ActionServlet knows about the mapping of a particular request to an instance of a particular Action class.The mapping is passed to the execute() method of the Action class, enabling access to this information directly. 

36) What is the MVC on struts? 

MVC stands Model-View-Controller.

Model: Model in many applications represent the internal state of the system as a set of one or more JavaBeans.

View: The View is most often constructed using JavaServer Pages (JSP) technology.

Controller: The Controller is focused on receiving requests from the client and producing the next phase of the user interface to an appropriate View component. The primary component of the Controller in the framework is a servlet of class ActionServlet. This servlet is configured by defining a set of ActionMappings.

Source: Contents are provided by Technicalsymposium Google Group Members. 
Disclaimer: All the above contents are provided by technicalsymposium.com Google Group members. 
Further, this content is not intended to be used for commercial purpose. Technicalsymposium.com is not liable/responsible for any copyright issues.


Download Technical Interview Materials PDF-Free Download

Technical Interview Questions and Answers Notes PDF
Placement Materials PDF-Free Download



Technicalsymposium.com-All Study Materials PDF-Free Download







Technicalsymposium.com-Free Live Support-Chat with Our Experts

Official Contact: +91-9245556793 (Whatsapp Message / SMS / Voice Call)


Our Expert team is ready to answer all your questions immediately-Feel free to speak in Tamil/English.

(Example:Events info/Lecture Notes/Off-Campus & All Jobs/Projects & All education information)

Working hrs (IST): (Morning: 10:00AM-3:00 PM) and (Evening:5:00 PM to 10:00 PM)

All Latest Question & Answer Page (FAQ)-Click here