Hibernate Java Interview Questions – Set 02

Explain about session interface This represents hibernate session which perform the manipulation on the database entities. Some of the activities performed by session interface are as follows they are managing the persistence state, fetching persisted ones and management of the transaction demarcation. What is Lazy Loading In Hibernate Lazy setting decides whether to load child objects … Read more

JSP Java Interview Questions – Set 02

What is JSP? JSP is a dynamic scripting capability for web pages that allows Java as well as a few special tags to be embedded into a web file (HTML/XML, etc). The suffix traditionally ends with .jsp to indicate to the web server that the file is a JSP files. JSP is a server side … Read more

Servlet Java Interview Questions – Set 02

How can I set a cookie in JSP?- response. setHeader(”Set-Cookie”, “cookie string”); To give the response-object to a bean, write a method setResponse (HttpServletResponse response) – to the bean, and in jsp-file:<% bean. setResponse (response); %> What is JSP? JSP is a dynamic scripting capability for web pages that allows Java as well as a … Read more

JDBC Java Interview Questions – Set 02

What are stored procedures? How is it useful A stored procedure is a set of statements/commands which reside in the database. The stored procedure is pre-compiled and saves the database the effort of parsing and compiling sql statements every time a query is run. Each database has its own stored procedure language, usually a variant … Read more

Multi Threading Java Interview Questions – Set 02

What is synchronization and why is it important? With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object’s value. This often … Read more

RMI Java Interview Questions – Set 01

Why Software Developers Choose Java Java has been tested, refined, extended, and proven by a dedicated community. And numbering more than 6.5 million developers, it’s the largest and most active on the planet. With its versatility, efficiency, and portability, Java has become invaluable to developers by enabling them to: Write software on one platform and … Read more

Serialization Java Interview Questions – Set 01

Can you write a simple program that compares two objects to return if they are equal or not? This method will be handy in defining your own equals( ) method. This is usefull in domain or value object class to compare different object fields in an equals method public class DomainObject { //protected because only … Read more

Beans Java Interview Questions – Set 01

What is binding (JavaServer Faces technology) ? Wiring UI components to back-end data sources such as backing bean properties. What is caller principal ? The principal that identifies the invoker of the enterprise bean method. What is backing bean ? A JavaBeans component that corresponds to a JSP page that includes JavaServer Faces components. The … Read more

Hibernate Java Interview Questions – Set 01

Explain about mapping description file Mapping description file is the second file which Hibernate uses to configure its functions. This mapping file has an extension *.hbm which instructs mapping between Java class and database tables. The usage of mapping description file rests entirely upon the business entity. Explain about transparent persistence of Hibernate Transparent persistence is provided … Read more

Multi Threading Java Interview Questions – Set 01

What is the wait/notify mechanism? This deals with concurrent programming. The wait() and notify() methods are designed to provide a mechanism to allow a thread to be block until a specific condition is met. However, java.util.concurrent should be used instead of wait() and notify() to reduce complexity. How can a collection object be sorted? // … Read more