Top Java J2EE Interview Questions :: ALLInterview.com http://www.allinterview.com Top Java J2EE Interview Questions en-us explain System.out.println http://www.allinterview.com/showanswers/23154.html System: System refers to current java program. out: out refers to output device. by default it is monitor. println: to print the specific string onto output device in next line explain oops concepts with examples? http://www.allinterview.com/showanswers/32553.html There are three types of oops in java. 1.Encapsulation:Encapsulation is mechanism,that binds together data and code its manipulates. Ex:suppose we are writing one bean.we declaring two private variables.we are providing setters and getters method Difference between Include, Forward and sendRedirect in Servlet? http://www.allinterview.com/showanswers/10954.html Response.sendRedirect () This function is used, when we want to redirect the client request to some other site (i.e out of our context) or when ever we want to redirect errors. If you are using sendRedirect (), then it will be visible to the Wat is Difference between Mvc1 architecture and Mvc2 Architecture? http://www.allinterview.com/showanswers/20110.html MVC1 it combines the presentation logic with the business logic where as MVC2 it seperates the presentation logic from business logic what is the Diff. between Access Specifiers and Access Modifiers? http://www.allinterview.com/showanswers/1065.html Access specifiers :: The access specifier determines how accessible the field is to code in other classes. Access ranges from totally accessible to totally inaccessible. You can optionally declare a field with an access specifier keyword: p How many types of action clases are there in stuts and their uses? http://www.allinterview.com/showanswers/20103.html 1)Forward Action 2)Include Action 3)Dispatch Action 4)Switch Action.........(one more Action is there) What is Struts Frame Work Architecture(With Diagram) ? http://www.allinterview.com/showanswers/20108.html Model Components Model components provide a "model" of the business logic or data behind a Struts program. For example, in a Struts application that manages customer information, it may be appropriate to have a "Customer" M Is struts thread safe? http://www.allinterview.com/showanswers/20105.html Struts is not only thread safe, it is thread dependant. Struts instansiate each Action only once and allow all other request to be handled by the same action what is the difference between abstract class and Interface?where we http://www.allinterview.com/showanswers/11031.html 1)We define an Interface in the Java application with a set of abstract methods without any implementation. Which means all the methods of an interface are by default abstract methods and public methods. 2)Once an Interface is defined in the what is difference Between Core Java and advance java http://www.allinterview.com/showanswers/23767.html See the diffrence is that core java is the fundamental for java that will be used in any java technology without this no one can jump on any advance java technology. Where as advance java is specialisation in some domain , as someone in networki what is ForwardAction and IncludeAction in struts? http://www.allinterview.com/showanswers/15727.html The IncludeAction has the same problem that the ForwardAction used to have . The IncludeAction directly calls the request dispatcher, returns a null ActionForward which bypasses the processing of the RequestProcessor. Unfortunate What is the difference between sendRedirect() and forward()? in what http://www.allinterview.com/showanswers/28188.html sendRedirect() means it's client side redirect at that time new parameters can be added.(i.e HttpRequest, HttpResponse) forward() meand it's server side redirect at that time same parameters can be used. forward() can be used fo Difference between JSF Framework and Struts Framework. http://www.allinterview.com/showanswers/3655.html Both these Frameworks are used for forcing the implementation of MVC-2 pattern. Struts Framework is implemented by apache, where as JSF is implemented by Sun Microsystems. what is the difference between ArrayList and Vector http://www.allinterview.com/showanswers/20264.html 1. Arraylist is not synchronized while vector is. 2. Arraylist has no default size while vector has a default size of 10. struts is thread safe or not ?give me answer as early as possible http://www.allinterview.com/showanswers/36891.html no,not a thread safe