Java 7 New Feature Writing same logic in every catch block is very tedious job and it also not good for readability of the Java program. In Java SE 7 and later, a single catch block can handle more than one type of exception. This feature can reduce code duplication and lessen the temptation to…
Send Multiple Cookies As Part Of Response In Jersey Rest API
Jersey Jersey RESTful Web Services framework is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. Sending Multiple Cookies While using REST API sometimes there is requirement to to maintain the cookies or session…
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 . . <dsp:input type=”hidden” bean=”TestFormHandler.createSuccessURL” value=”succesurl.jsp” /> . . The above code will redirect the user to…
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…
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…
HashMap Load Factor and Initial Capacity
Initial Capacity and Load Factor in HashMap are two parameters that affect its performance. Initial Capacity In HashMap The capacity is the number of buckets in the hash table, and the initial capacity is simply the capacity at the time the hash table is created. Default initial capacity is 16. Load factor In HashMap The…
GenericFormHandler And RepositoryFormHandler in ATG
GenericFormHandler And RepositoryFormHandler Classes In ATG Both of these classes in ATG are used to create a custom form handler to deal with user input and repositories. But these two classes have different purposes in terms of creating new form handler. The difference is GenericFormHandler Custom form handlers should typically extend GenericFormHandler, which: Is a…
Oracle Import Export From Remote System Using IMPDP & EXPDP
Oracle IMPDP and EXPDP Oracle provides two very good tool for importing and exporting data dump very efficiently and in very simple manner using new data pump feature. There are two ways to import data using data pump. Using IMPDP directly without dump file. Using IMPDP with dump file. Things To Consider – Utility command…
Process Steps When We Deploy Any Web Application On Server
When we are creating and deploying any web application on server, the following tasks happened on server side. Step 1:- web.xml parsed by using SAX Parser and stores in to memory. Step 2:- ServletContext object will be created and initialized by sevletContext parameter specified in web.xml. <context-param>………</context-param> Step 3:- Thread Pool will be created. Step 4:- Servlet…
Difference between init() & init(ServletConfig)
Question-What’s the difference between init() & init(ServletConfig) and Which is better ? Answer- Before start we have to understand the servlet flow. For example you have servlet LoginServlet which extends HttpServlet public class LoginServlet extends HttpServlet{ } And your HttpServlet internally extends GenericServlet. public abstract class GenericServlet implements Servlet, ServletConfig, Serializable { public GenericServlet() {…