The Singleton Pattern Ensure a class only has one instance, and provide a global point of access to it.For example ,if we need a connection to single database at one time  or when ever we are referring to to single application.properties file in struts application for showing application in one language at one time.Then we [...]

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 [...]

Its a common requirement that we require a captcha to be integrated on our page. I would like to mention a free captcha service which can be implemented in integrated on websites. What is reCaptcha? reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. It’s Free! Yep, [...]

What is JSON? JSON (Javascript Object Notation) is a light weight data interchange format. JSON is a subset of the literal object notation in JavaScript. It can be compared to XML but parsing of JSON is very much easier than XML data. It is a text format of data and is programming language independent. In [...]

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.

When using rewrite maps in IIS URL Rewrite it is very common to have a very large number of entries in a rewrite rules. In order to avoid cluttering the configuration file - web.config - with this configuration data the rewrite rules can be defined in a separate configuration file. That file can then be referenced from the web.config file. [...]