Technicalsymposium.com - New Updates Alerts-Subscribe
Our Telegram Channel - Join Us
Our Whatsapp Group - Join Us
Technical Interview Materials PDF-Free Download
Technical Interview Q & A PDF
Q #1) What are the components of J2EE applications?
• Client-tier components. Run on the client machine.
• Web tier components. Run on the J2EE server.
• Business tier components. Run on the J2EE server.
• Enterprise information system software (EIS software).Runs on the EIS server.
Q #2) What are the J2EE client types?
• Application clients
• Java Web Start enabled clients, by Java Web Start technology.
• Wireless clients, based on Mobile Information Device Profile (MIDP) technology.
Q #3) What is a J2EE container?
Ans) The interface between a component and the low-level platform with specific functionality that support the component is called a container. Application server maintains control and provides relevant services through an interface or framework calls as a container.
Q #4) What are defined as web components?
Ans) Java Servlets and Java server pages technology components are identified as web components. Servlets dynamically receive requests and make responses. JSP server pages also behave as Java Servlets but facilitate to create more static contents.
Q #5) Describe the MVC on struts?
Ans) MVC stands for Model View Controller. Each section in Model View Controller can describe as follows.
• Model –Model represents the internal state of the system as a set of single or many Java Beans.
• View – Most often view is a constructed using Java Server Pages (JSP) technology.
• Controller –The controller is the process that focuses on client request receiving and produce next level of a user interface according to the request. The primary component of the controller in the framework is “ActionServlet” servlet class.
Q #6) Define JSF?
Ans) JSF stands for Java Server Faces. It is the user interface (UI) designing framework for Java Web Applications developments. There are set of reusable UI components associated with JSF. Also, JSF based on Model-View-Controller (MVC) design concepts and patterns. The automated data saving process from form to server and display at client side is also handling by JSF.
Q #7) What is Hashtable?
Ans) Hash table is a Collection Synchronized objects. It allows Null values but not duplicate values. Hash table is like a HashMap.
Q #8) Define Hibernate?
Ans) Hibernate is an open source object-relational mapping and query service which facilitate to write Hibernate Query Language (HQL) scripts instead of Structured Query Language (SQL) scripts. It is faster and easy than writing native SQL. Hibernate has more powerful object oriented contents like associations, inheritance, and polymorphism. Also, Hibernate has a powerful composition and collections. Hibernate allows making queries using Java base approach.
Q #9) What are the identified limitation of hibernate?
• Slower in action – In execution of HQL queries take more time than it executes directly.
• Only composite keys support available and it prevents advanced query options.
• No shared value type references available.
Q #10) What the identified advantages are of hibernate?
• Database and vendor independence application.
• Standard Object-relational mapping support.
• Domain object mapping for a relational database.
• Better performance than Java Database Connectivity.
• Java Persistence API based applications.
Q #11) Describe ORM?.
Ans) Object-Relational mapping (ORM) can describe as follows.
The mapped objects in a Java class to the tables of the relational database using metadata which describes the database and object mapping. The working method is to transform data from one representation to another.
Q #12) What are the advantages of Object-Relational mapping (ORM)?
• Productivity – Reduce the time for data access coding with help of automatic code creation base on the defined data model.
• Maintainability – All code generated from ORM are well tested. Only the developer need to create the correct functionality
• Performance – The code generated from ORM completely manages the data access needs of the application. No need to create any data access code to create and also the code is optimized for speed up the data access process.
• Vendor independence – The code generated from ORM is not depending on the vendor. This is to increase the portability of the application.
Q #13) What is the use of method save()?
Ans) In hibernate this method is used to stores an object into the database. There is a check for duplicate records before inserting it.
Q #14) What is the use of method saveorupdate()?
Ans) In hibernate this method is used to update an object using identifier. When the value for the identifier is NULL then the method direct to call save().
Q #15) What is the difference between load() and get()?
Ans) When the object not available in either cache or database, load() thrown an exception. No null return from load().
When the object not available in either cache or database, get() returns null.
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.
Technicalsymposium.com-All Quick Links & Study Notes PDF- Free Download