Top Java Related Interview Questions :: ALLInterview.com http://www.allinterview.com Top Java Related 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 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 the difference between Servlet and JSP?Advantage of JSP over http://www.allinterview.com/showanswers/10953.html . The main difference between them is, In servlets both the presentation and business logic are place it together. Where as in jsp both are saparated by defining by java beans . In jsp's the overall code is modulated so the developer w What is MVC Architecture? http://www.allinterview.com/showanswers/6898.html MVC is model view controller architecture . MVC is divided into 3 parts 1.MVC 2.MVC ->1 this is jsp and java bean commmunication. 3.MVC ->2 this is servlet+jsp+javabean+struts commun. model is backend database or 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 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 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 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 ServletContext() and what is its use? http://www.allinterview.com/showanswers/2442.html Assume that ServletContext is shared momeroy for all servelts which are existed in a web application, we can place an object on to the servletcontext, and that can uses all other servlets which are exited in the web application. what is WLS T3 protocol? http://www.allinterview.com/showanswers/6678.html Weblogic's implementationof the RMI specification uses a proprietary wire-protocol known as T3. javasoft's reference implementation of RMI uses a proprietary protocol callrd JRMP. weblogic developed T3 because they needed a scalable,eff 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 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. 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 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)