1.What is ORM ? ORM stands for object/relational mapping. ORM is the automated persistence of objects in a Java application to the tables in a relational database. 2.What does ORM consists of ? An ORM solution consists of the followig four pieces: API for performing basic CRUD operations API to express ries refering to classes [...]
Tags: Java Interview Questions, Java Interview Questions and Answers, Hypernate Interview Questions
1. What is IOC (or Dependency Injection)? The basic concept of the Inversion of Control pattern (also known as dependency injection) is that you do not create your objects but describe how they should be created. You don’t directly connect your components and services together in code but describe which services are needed by which [...]
Tags: Java Interview Questions, Java Interview Questions and Answers, Spring Interview Questions
Q: What is Struts? A: The core of the Struts framework is a flexible control layer based on standard technologies like Java Servlets, JavaBeans, ResourceBundles, and XML, as well as various Jakarta Commons packages. Struts encourages application architectures based on the Model 2 approach, a variation of the classic Model-View-Controller (MVC) design paradigm. Struts provides [...]
Tags: Interview Questions and Answers, Java Interview Questions, Struts Interview Questions
Q: What is a output comment? A: A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser. [...]
Tags: Interview Questions and Answers, Java Interview Questions, JSP Interview Questions
Q: Explain the life cycle methods of a Servlet. A: The javax.servlet.Servlet interface defines the three methods known as life-cycle method. public void init(ServletConfig config) throws ServletException public void service( ServletRequest req, ServletResponse res) throws ServletException, IOException public void destroy() First the servlet is constructed, then initialized wih the init() method. Any request from client [...]
Tags: Interview Questions and Answers, Java Interview Questions, Java Servlet Questions
Q: What is the difference between an Interface and an Abstract class? A: An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract. An interface has all public members and no implementation. An [...]
Tags: Java Interview Questions, Core Java, Java Interview Questions and Answers
1. Differentiate between a Class and an Object? A Class is only the definition or prototype of real life object. Whereas an object is an instance or living representation of real life object. Every object belongs to a class and every class contains one or more related objects. 2. What do you understand by a [...]
Tags: Java, Java Interview Questions, Core Java