1. What is serialization and deserialization? Serialization is the process of writing the state of an object by converting it to a byte stream. De-serialization is the process of restoring an object from byte stream. 2. What is the need of Serialization? To send the state of an object over the network. To save the state of an object ...
How To Split A Long WordPress Post Into Multiple Pages?

Few days back I published several posts for Hibernate Interview Questions. I felt that the topic is too long and one single post is not enough to complete all the questions. I had only one solution with me to write several different posts with different headings. What is the advantage of creating several WordPress posts for ...
Race Condition in Java HashMap

Java HashMap is not thread-safe so if it is used in a multithreaded environment then two threads might simultaneously feel the need to rehash the HashMap and start racing to capture it and the race winner will use it until the thread scheduler makes the race owner waiting and welcoming the looser to use it ...
Struts 1 Interview Questions

1. What is MVC? MVC means Model, View and Controller. MVC pattern clearly separates the application into these three layers. The model consists of application data, business rules, logic, and functions and it has no idea of View or Controller. The View is presentation of the Model to the client and it cannot change the Model and ...
Java Collections Framework Interview Questions

1. What is Java Collections API? Java Collections Framework provides a set of interfaces and classes that support operations on a collections of objects. There are two "groups" of interfaces: Collection's and Map's. The Collections classes in java.util were designed to replace arrays with a very powerful alternative that provids a better control through utility functions ...
OOPS Interview Questions in Java

1. What is OOPS? Object Oriented Programming System is a programming technique to create programs based on the real world objects. The states and behaviors of an object are represented as the member variables and methods. In object oriented programming the programs are organized around objects and data rather than actions and logic. 2. What is the ...
Hibernate Interview Questions – Miscellaneous
131. Explain about transaction file? Transaction file is a temporary work file based on that the changes committed or rolled back. 132. What type of transaction management is supported in Hibernate? By default Hibernate supports transaction management through JDBC. It also supports JTA and CMT(Container Managed Transaction) transaction management. 133. What is transaction management in Hibernate? How it works? Transaction ...
Hibernate Interview Questions – Performance Tuning
115. What are different types of cache Hibernate supports? Hibernate supports mainly two types of caching: First Level Cache and Second Level Cache. Second Level Cache also includes Query Cache. 116. What is first level cache in hibernate? By default Hibernate Session object caches the persistent objects in local memory. It is known as First Level Cache. It ...
Hibernate Interview Questions – Querying on Objects
87. What is Hibernate proxy? By default Hibernate uses proxy design pattern to support lazy loading. Instead of the actual object Hibernate returns a proxy object when Session.load() is called. Hibernate uses the Javassist(Java programming assistant) byte code manipulator to create proxies efficiently at runtime. These proxy objects are referred as Hibernate proxy. When a method ...
Hibernate Interview Questions – Object Persistence
63. Explain the transparent persistence of Hibernate. Transparent persistence is accessing the database records via objects instead of directly reading from database or using SQL queries. If the object is modified then the underlying database record is automatically updated. This is a basic feature of Hibernate. 64. Explain Hibernate object states / object life cycle. Instances may exist ...
