Hibernate Interview Questions Series Part 5

This is the Series four of Hibernate Interview Questions 41. What is transactional write-behind? Hibernate uses a sophisticated algorithm to determine an efficient ordering that avoids database foreign key constraint violations but is still sufficiently predictable to the user. This feature is called transactional write-behind. 42. What are Callback interfaces? Callback interfaces allow the application … Read more

Hibernate Interview Questions Series Part 4

This is the Series four of Hibernate Interview Questions 31.What are the Collection types in Hibernate ? · Bag · Set · List · Array · Map 32.What are the ways to express joins in HQL? HQL provides four ways of expressing (inner and outer) joins:- · An implicit association join · An ordinary join … Read more

Hibernate Interview Questions Series Part 3

This is the Series three of Hibernate Interview Questions 21.How do you invoke Stored Procedures? { ? = call selectAllEmployees() } 22.Explain Criteria API Criteria is a simplified API for retrieving entities by composing Criterion objects. This is a very convenient approach for functionality like “search” screens where there is a variable number of conditions … Read more

Hibernate Interview Questions Series Part 2

This is the Series two of Hibernate Interview Questions 11.What role does the Session interface play in Hibernate? The Session interface is the primary interface used by Hibernate applications. It is a single-threaded, short-lived object representing a conversation between the application and the persistent store. It allows you to create query objects to retrieve persistent … Read more

Difference between next() and nextLine()

next() and nextLine() methods are available in java.util.Scanner class; which is a simple text scanner class to parse primitive types and strings using regular expressions. The next() and nextLine() methods are used for getting inputs from User. A Scanner class breaks its input into tokens using a delimiter pattern, which by default matches white-space. next(): … Read more

Efficient Way to Check String is Palindrome or Not

A String can be Palindrome if that reads the same forward or reversed. For example, ‘radar’, ‘level’ , ‘refer’ are some Palindrome words. A String is palindrome or not can be checked using different approaches but the best approach is to compare string first and last character and then proceed further Program to check Palindrome … Read more

Hibernate Interview Questions Series Part 1

This is the Series of Hibernate Interview Questions mostly asked in freshers and experienced level Series Oneof Hibernate Interview Questions 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 … Read more