272014Sep

HashSet Class in java

HashSet uses hash table to store the element it extends AbstractSet class and implements Set, Cloneable, java.io.Serializable.An object of this class is responsible to creating Hashtable (actually a HashMap instance) in memory and store element in Random manner with uniqueness. Every Collection implements :- Cloneable, java.io.Serializable interface. Four Constructor is available in HashSet- 1. HashSet() Constructs a new, empty set; the backing HashMap instance has default initial capacity (16)…

Read More
242014Sep

Derived Property In ATG

Derived Property In ATG is a transient property (not associated with a column in a table) that: Derives its value from another property Can search through a series of properties to find a non-null value Specifies the derivation mechanism in the XML Repository Definition File by using a <derivation> tag Derived properties provide a way…

Read More
242014Sep

Creating Dynamic Success URL In FormHandler In ATG

Success URL In FormHandler in ATG Success URL in ATG is the URL used in formhandlers when we want to redirect the user after successful submission of form whether it is creating, updating or deleting a row. e.g

The above code will redirect the user to “succesurl.jsp” after successful submission of form i.e row…

Read More
212014Sep

ArrayList Class In Java

ArrayList Class In Java:- ArrayList uses array to store the elements. It extends AbstractList and implements List, RandomAccess(Marker Interface), Cloneable, Serializable. Three Constructors are available in ArrayList:- ArrayList() – Constructs an empty list with an initial capacity of 10. ArrayList(Collection<? extends E> c) – Constructs a list containing the elements of the specified collection, in the order they are returned…

Read More
142014Sep

What is System Class in java

System Class In Java:- is a core class. provides number of method and class fields. is available in java.lang package. provides facility like Standard input,Standard output,error stream output, loading files and libraries, access to externally defined properties and environment variables and a utility method for quickly copying a portion of an array. Unique Features in System Class:- System…

Read More
112014Sep

ATG Interview Questions

ATG Interview Questions For 1-2 Years Experience Explain Architecture of ATG. What is Nucleus ? What is Repository in ATG ? Which Formhandlers you have used in ATG ? How Droplet Work ? How will you define one to many relationship in repository. How you use MAP in one to many relation. Difference between item-type…

Read More
92014Sep

Check User Active Status Using Idle Timer

There are most of the time when there is requirement for setting session timeout when user is idle for sometime. Like there are ajax requests going on for users who are logged in e.g notification call, new messages call. But the user is idle or leaves the browser open for long time so in that…

Read More
32014Sep

Need Of serialVersionUID In Serialization

serialVersionUID In Serialization If we do not explicitly declare serialVersionUID during serialization then JVM generates this ID based upon the structure of class. And then if we implement another interface or any other class or change the structure of class then JVM will generate different serialVersionUID for the class. After that if we try to…

Read More
32014Sep

Singleton In Java

Singleton in java is a class which has only one instance in whole application and provides a getInstance() method to access the singleton instance. There are many classes in JDK which is implemented using Singleton pattern like java.lang.Runtime which provides getRuntime() method to get access of it. There are many ways to create singleton in…

Read More