“Hash Map is a Hash table based implementation of the Map interface. This implementation provides all of the optional map operations, and permits null values and the null key. (The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls.) This class makes no guarantees as to the order of [...]

What is Struts? Struts is a web page development framework and an open source software that helps developers build web applications quickly and easily. Struts combines Java Servlets, Java Server Pages, custom tags, and message resources into a unified framework. It is a cooperative, synergistic platform, suitable for development teams, independent developers, and everyone between. [...]

There are two types of cloning for prototype patterns. One is the shallow cloning which you have just read in the first question. In shallow copy only that object is cloned, any objects containing in that object is not cloned. For instance consider the figure ‘Deep cloning in action’ we have a customer class and [...]

Hippo CMS 7 allows you to pick image in cms editor from Image gallery using hippogallerypicker add- on . Hippo Gallery picker can be configureed to display custom height and width of custom image. Confgiuration can done at ‘/hippo:namespaces/hippogallerypicker/imagelink/editor:templates/_default_/root’ by changing properties of preview.width and preview.height.

Normally we want to fetch this information that which row have duplicate value.So here i am sharing very easy solution for this.by using this query you can get which row have multiple entries. SELECT surname, COUNT(surname) AS numOftimes FROM employee GROUP BY surname HAVING ( COUNT(surname) > 1 ) You could also use this technique [...]

The factory method pattern is an object-oriented design pattern to implement the concept of factories. Like other creational patterns, it deals with the problem of creating objects (products) without specifying the exact class of object that will be created. The creation of an object often requires complex processes not appropriate to include within a composing [...]

Q: What is a Thread? Ans) In Java, “thread” means two different things: An instance of class java.lang.Thread. A thread of execution. An instance of Thread is just…an object. Like any other object in Java, it has variables and methods, and lives and dies on the heap. But a thread of execution is an individual [...]

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