Skip to main content

Posts

Showing posts with the label Java J2EE

What's New in Java 12? New Features of Java 12

The development repositories are open for bug fixes, small enhancements, and JEPs as proposed and tracked via the JEP Process. What Is JEP? This JEP is the index of all JDK Enhancement Proposals, known as JEPs. JDK 12 is the open-source reference implementation of version 12 of the Java SE Platform as specified by by JSR 386 in the Java Community Process. Java 12 is released on March 2019. https://jdk.java.net/12/ The List of Added Features:- 1.       JEP 189 - A Low-Pause-Time Garbage Collector 2.       JEP 325 - Switch Expressions 3.       JEP 326 - Raw String Literals is dropped from JDK 12 release 4.       JEP 230 - Microbenchmark Suite 5.       JEP 334 - JVM Constants API 6.       JEP 340 - One AArch64 Port, Not Two 7.       JEP 341 - Default CDS Archives 8.  ...

25 Best JSP Interview Questions and Answers - Java J2EE

What Is JSP? JSP stands for Java Server Page . JSP are internally converted to Servlet (.class) for processing Java code. JSP is a server side technology which is used for creating dynamic web pages. JSP is an extension of Servlets . JSP comes with SUN’s J2EE platforms. What Are the Advantages of JSP? JSP enables server side programming abilities. JSP represents HTML pages embed with Java code. JSP is cross platform technology. JSP can create database driven Web applications. Is JSP Technology extensible? Yes!, JSP is an extensible by using the modification of tags. What Are the JSP Life Cycle? The JSP life-cycle is defined as the process started with its creation which later translated to a servlet and afterward servlet life-cycle comes into play. A JSP Life cycle consists of following steps: 1.       Translation of JSP to Servlet code 2.       Compilation of Servlet to byte code 3.  ...

Life-Cycle of Servlet - Java J2EE

What Is the Life-Cycle of Servlet? A Servlet life-cycle can be defined as the entire process from its creation till the destruction. The Stages of the Servlet Life Cycle : 1.        Servlet is loaded 2.        Servlet is instantiated 3.        Servlet is initialized 4.        Service the request 5.        Servlet is destroyed Source - (http://www.javachain.com/servlet-life-cycle/) For more questions on servlet programming...

25 Best Servlet Interview Questions and Answers - Java J2EE

What Is Servlet? Java Servlet is a server side programming which used to generating dynamic web pages and it also generates web page as a response of the request received from browsers. Java Servlet is a class which responds to a particular type of network request - HTTP request. All servlets must implement the javax.servlet.Servlet interface which defines servlet life-cycle methods . Java Servlet  are programs that run on a Web server and it work in the middle layer between a request coming from the Web browsers and databases on the HTTP server . How Many Objects of a Servlet is created? Only one object at the time of first request by servlet or web container. Web container manages the life cycle of a servlet and helps to map the URL to a specific servlet and web container creates the object of a servlet. Do we override service () method? No!, we do not override the service() method. What's New Features Added to Servlet 3? The main aims to of...