1) What Is J2EE?: Parameter JAR WAR EAR
1) What Is J2EE?: Parameter JAR WAR EAR
J2EE means Java 2 Enterprise Edition. The functionality of J2EE is developing multitier web-
based applications .The J2EE platform is consists of a set of services, application programming
interfaces (APIs), and protocols.
Functions Used to package classes and Used to package a web Used to package EJB, JSP,
property files. application. Servlets etc.
Files contain Enterprise Java Beans (EJB) class Servlet class files, JSP files, All files of JAR and WAR.
files and EJB deployment supporting files, GIF and HTML.
descriptor.
13) How can information from one JSP be passed to another JSP?
The tag <Jsp:param> allows us to pass information between multiple Jsp’s.
14) Why does _jspService() start with an ‘_’ but other lifecycle methods do not?
Whatever content made in a jsp page goes inside the _jspService() method by the container. If
it is override, the compiler gives an error, but the other 2 lifecycles can be easily override. So ‘_’
shows that we cannot override this method.
24) What is called Session Tracking? Why session tracking is needed? What are
the types of Session Tracking?
Session tracking is used to maintain a state on the series of requests from the same user for a
given period of time.
Every HTTP request needs to be captured by HTTP protocol and for that, state is captured.
Tracking of state is called session tracking.
Types of session tracking:
URL rewriting - URL rewriting is one of the methods of session tracking in which
additional data is appended at the end of each URL. This additional data identifies the
session.
Hidden Form Fields
Cookies - Cookies are used to store long term information that can be maintained
without server interaction. Small and Medium size data are kept in a queue.
Secure Socket Layer (SSL)
Closure is a way to define a function within the scope of another function. JavaScript is a good
example of a language that inherently supports Closures.
Java7 Java8
Strings in switch Lambda expressions
private Yes No No No