There are three basic classifications of patterns Creational, Structural, and Behavioral patterns. Creational Patterns • Abstract Factory:- Creates an instance of several families of classes • Builder: – Separates object construction from its representation • Factory Method:- Creates an instance of several derived classes • Prototype:- A fully initialized instance to be copied or cloned • Singleton:- A class in [...]

User log4j and commons-logging.jar in the class path. These jar files contain the information for logging set up.Declare the following as a class attribute in the class where you want to implement the logging, say SomeClass.java You would have a sample log4j properties configuration file which you should put in your classpath. Suppose you wanted the [...]

HashMap vs Hashtable Hashtable and HashMap are both key-value based data structure. Both of them allows the access data based on key. Both of them some differences in storing values and performance over iteration. Some of the basic differences are following HashMap HashTable Synchronized Un-synchronized  Synchronized Allow null Allowed Null for key and Value Not allowed, Null pointer would [...]

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.

Hi all , here again I came up with most awaited article .This is part oracle Adf interview Question part-two.I have accumulated ,formulated, and gathered these information from various sources.So that it would be helpful for Oracle ADF community. But I am afraid of Mr. Saravanan of jdeveloperandadf.blogspot.com ,who again not try to copy paste [...]

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

Task Flow- ADF Task Flows is a new feature that will ship with ADF 11g. In simple terms, it is a tool to encapsulate page flow/navigation. A set of ADF Controller activities, control flow rules and managed beans that interact to allow a user to complete a task. It is much more than that in [...]

It is very common to use unique identifiers in web application for identifying unique users or some other usage, till now I was always writing an program using some random generator code for them. It is always hard to do that, as those unique identifiers should not repeat them self in future, else it will [...]

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