8:55 pm - Saturday April 20, 2019

Archive: Z-A Interview Questions Subscribe to Z-A Interview Questions

Oops Interview Questions in java

1. What’s the difference between constructors and normal methods? Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times and it can return...

Hibernate Interview Questions and Answers part 12

1. What are the different levels of ORM quality? There are four levels defined for ORM quality. Pure relational Light object mapping Medium object mapping Full object mapping 2. What is Hibernate? Hibernate is a powerful, high performance...

Hibernate Interview Question11

1. What are Extension interfaces? When the built-in functionalities provided by hibernate is not sufficient enough, it provides a way so that user can include other interfaces and implement those interfaces for user desire functionality. These...

Hibernate Interview Question and Answers Part 10

1. What is HQL? HQL stands for Hibernate Query Language. Hibernate allows the user to express queries in its own portable SQL extension and this is called as HQL. It also allows the user to express in native SQL. 2. What is object/relational...

Hibernate Interview Questions and Answers – Part 8

1. Types of locks Read lock Write lock Execute lock Fetch lock Save lock 2. What is 2-phase lock? Read only transaction Update transaction 3. What are the design patterns used in hibernate? Composite design DAO Design Pattern Abstract...

Hibernate Interview Questions and Answers- Part 7

1. What is the purpose of dialect? There are two concepts here a Dialect and a Driver, Driver is like English. Dialect is the different pronunciations of English. We all know there are different versions of Oracle… Oracle 9i, Oracle8. The...

Hibernate Interview Question and Answers Part 9

1. What is caching? Anything you can do to minimize traffic between a database and an application server is probably a good thing. In theory, an application ought to be able to maintain a cache containing data already loaded from the database,...

Hibernate Interview Questions and Answers – Part 1

Hibernate Interview Questions Hibernate is one of the ORM tool developed for Java applications. for providing database oriented services hibernate was mostly used in enterprise related applications. Having knowledge in Hibernate will add advantage for...

Hibernate Interview Questions and Answers – Part 3

1. How can Hibernate be configured to access instance variable directly and not through a setter method? By mapping the property with access=” field” in Hibernate metadata. These forces hibernate to bypass the setter method and access...

Hibernate Interview Questions and Answers – Part 2

1. Define HibernateTemplate? org.springframework.orm.hibernate.HibernateTemplate is a helper class which provides different methods for querying/retrieving data from the database. It also converts checked HibernateExceptions into unchecked DataAccessExceptions. 2....

Hibernate Interview Question and Answers- Part 6

1. Explain about version field? Application level data integrity constants are important if you are making changes to offline information which is again backed by the database. Higher level locking or versioning protocol is required to support...

Hibernate Interview Question and Answers

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 consist of? An ORM solution consists of the following four pieces: API...

Hibernate Interview Questions and Answers Part 5

1. What is a Session Factory? Is it a thread-safe object? SessionFactory is Hibernates concept of a single data store and is threadsafe so that many threads can access it concurrently and request for sessions and the immutable cache of compiled...

Struts InterviewQuestion3

1.            Explain about token features in struts The problem of duplicate form submission arises when a user clicks the Submit button more than once before the response is sent back. This may result in inconsistent transactions...

Struts InterviewQuestions2

1.            How to handle Errors and Exceptions in struts. Exceptions in Struts are handled in two ways: Programmatic exception handling : Explicit try/catch blocks in any code that can throw exception. It works well when custom...

Struts InterviewQuestions4

1.            What is the use of validate and reset method The validate method is called by the controller servlet after the bean properties have been populated, but before the corresponding action class’s execute method is...

Basic Interview Question10

Basic Interview Question6

59.  Is main a keyword in Java? No, main is not a keyword in Java. 60.          Is next a keyword in Java? No, next is not a keyword. 61.          Is delete a keyword in Java? No, delete is not a keyword in Java. Java does...

Basic Interview Question9

Basic Interview Question8