RESTful Webservice Interview Questions

What REST stands for? REST stands for REpresentational State Transfer. What is REST? REST is web standards based architecture and uses HTTP Protocol for data communication. Here every component is a resource which are accessed using common interface using HTTP standard methods. In REST architecture, a REST Server simply provides access to…

Continue reading

Evaluation

What is Spring Application Context ? The ApplicationContext is the central interface within a Spring application for providing configuration information to the application. It is read-only at run time, but can be reloaded if necessary and supported by the application. A number of classes implement the ApplicationContext interface, allowing for…

Continue reading

Bean lifecycle and CallBack Methods in Spring

Following is sequence of a bean lifecycle in Spring: Instantiate– First the spring container finds the bean’s definition from the XML file and instantiates the bean.. Populate properties– Using the dependency injection, spring populates all of the properties as specified in the bean definition.. Set Bean Name– If the bean…

Continue reading

Hibernate-Interview-Preparation

Explain Lifecycle of Pojo Life of Pojo has 3 states Transient state Persistent state Detached state Transient state : When ever an object of a pojo class is created then it is in Transient state In Transient state it doesn’t represent any row of the database and it is not associated…

Continue reading

Java Memory and Performance Interview Questions

This post is a compilation of many useful articles available on Internet.Their references can be found at the end of the post. Java Memory and Performance Improvement tips: How would you improve performance of a Java application? Pool valuable system resources like threads, database connections, socket connections etc. Emphasize on…

Continue reading

Race condition in Java multi-threading

Race condition occurs in a multi-threaded environment when more than one thread try to access a shared resource (modify, write) at the same time. Note that it is safe if multiple threads are trying to read a shared resource as long as they are not trying to change it. Since…

Continue reading

Design Pattern Compilation

Command Pattern The client passes a request, this request gets propagated as a command. The command request maps to particular modules. According to the command, a module is invoked. This pattern is different from the Chain of Responsibility in a way that, in the earlier one, the request passes through…

Continue reading

Junit interview questions

Question: What is unit testing? Answer: A complete application can be build up by integrating small-2 functional parts, such parts are called as units. It is always better to test such individual units before testing the entire application. The process of testing the functionality and working of these individual unit…

Continue reading

Spring-Interview-Preparation

Spring: (WHAT/WHEN/HOW/WHY) What is Spring? It is a lightweight, loosely coupled and integrated framework for developing enterprise applications in java. Spring Framework is built on top of two design concepts – Dependency Injection and Aspect Oriented Programming.  Why use Spring.(Features/Advantages) Whyto use spring is something more of a combination of…

Continue reading