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

JSP Java Interview Questions – Set 01

What is backing bean ? A JavaBeans component that corresponds to a JSP page that includes JavaServer Faces components. The backing bean defines properties for the components on the page and methods that perform processing for the component. This processing includes event handling, validation, and processing associated with navigation. What does web module contain?The web … Read more

Web Services Interview Questions – Set 01

What are the advantages of having XML based Web services? Using XML eliminates any networking, operating system, or platform binding. So Web Services based applications are highly interoperable application at their core level. Explain the role of web service provider/ Publisher. The role of a Web Service provider is to implement web service and make … Read more

Exception Handling Java Interview Questions – Set 01

What is the difference between checked and unchecked exceptions? In general, unchecked exceptions represent defects in the program (bugs), which are normally Runtime exceptions. Furthermore, checked exceptions represent invalid conditions in areas outside the immediate control of the program. Explain Checked Exceptions and Unchecked Exceptions with examples Unchecked exceptions : represent defects in the program … Read more

Servlet Java Interview Questions – Set 01

What does web module contain?The web module contains: JSP files, class files for servlets, GIF and HTML files, and a Web deployment descriptor. Web modules are packaged as JAR files with a .war (Web ARchive) extension. Can you write code to sort the following string values naturally (i.e. in alphabetical order)? (JEE, Java, Servlets, JMS, … Read more

Spring Java Interview Questions – Set 01

What is a Session? Can you share a session object between different threads Session is a light weight and a non-threadsafe object (No, you cannot share it between threads) that represents a single unit-of-work with the database. Sessions are opened by a SessionFactory and then are closed when all work is complete. Session is the … Read more

Flutter Interview Questions – Set 01

Name some popular apps that use Flutter? Today, many organizations use Flutter for building the app. Some of the most popular app built on Flutter are as follows: Google Ads Reflectly Alibaba Birch Finance Coach Yourself Tencent Watermaniac What are Flutter widgets? A Flutter app is always considered as a tree of widgets. Whenever you … Read more

Struts Java Interview Questions – Set 01

Explain the Struts1/Struts2/MVC application architecture? Struts was adopted by the Java developer community as a default web framework for developing web applications The MVC(Model–view–controller) an application that consist of three distinct parts. The problem domain is represented by the Model. The output to the user is represented by the View. And, the input from the … Read more

JDBC Java Interview Questions – Set 01

What are available drivers in JDBC? JDBC is a set of Java API for executing SQL statements. This API consists of a set of classes and interfaces to enable programs to write pure Java Database applications. JDBC technology drivers fit into one of four categories: A JDBC-ODBC bridgeprovides JDBC API access via one or more ODBC … Read more