1) What is servlet? Ans: Servlets are modules that extend request/response-oriented  servers, such as java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company’s order database. 2) What are the classes and  interfaces for servlets? Ans: There [...]

I have created a collection of ADF interview Question .So just want to share with everyone Please give feedback. What is Oracle Adf? Ans : The Oracle Application Development Framework (Oracle ADF) is an end-to-end application framework that builds on J2EE standards and open-source technologies to simplify and accelerate implementing service-oriented applications. If you develop [...]

I gathered information from environment and sharing you this information with all. When Ever you want to call any servlet from another servlet We can use two ways:- A servlet can make an HTTP request of another servlet. Opening a connection to a URL A servlet can call another servlet’s public methods directly, if the [...]

People always define Logger in upper case for not having PMD warning According to SUN code convention only constants should be defined in upper case. Every thing that you define as static and final doesn’t not become constant, but it should immutable too. Logger are not immutable like other primitive types e.g number and String,  Logger [...]

Adapter Design pattern – Structural Patterns Adapter pattern Convert the existing interfaces to a new interface to achieve compatibility and re usability of the unrelated classes in one application. Also known as Wrapper pattern. An adapter allows classes to work together that normally could not because of incompatible interfaces, by providing its interface to clients [...]

We posted earlier how send email using java email api. Here is example of sending email in plain text and html format in same email.

A map is an interface in the java.util package which stores the association between key and its corresponding value. A map cannot contain duplicate keys; each key can map to at most one value Map differs from array in a way that we can store a value at a particular index in arrays but a [...]

Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application – from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for executing tens, hundreds, or even tens-of-thousands of [...]

I found some useful information on internet about hibernate caching.I thought of sharing with everyone. High-volume database traffic is a frequent cause of performance problems in Web applications. Hibernate is a high-performance, object/relational persistence and query service. In many cases, second-level caching can be just what Hibernate needs to realize its full performance-handling potential. What [...]

While working I found one keyword Synthetic variable or method in java. Never heard of this before.I found some information on net and thought of sharing knowledge with everyone. If you want add something in this ,it would be really great. “Synthetic” attribute means a variable introduced by the compiler that doesn’t appear in the [...]