Java EE Tutorials Servlets Tutorials Servlets Interview Questions Hypertext Transfer Protocol (HTTP) is an application-level protocol for common hypermedia information systems. It is a request/response protocol between clients and servers. It is a generic stateless protocol, used to transfer hypertext. HTTP Status Codes Status Codes are used by the client application to know the status …
SingleThreadModel In Servlet
Java EE Tutorials Servlets Tutorials Servlets Interview Questions The SingleThreadModel interface was designed to guarantee that only one thread is executed at a time in a given servlet instance’s service method. It is a marker interface and has no methods. This interface is currently deprecated, excerpts from the Java Doc: Deprecated. As of Java Servlet API …
MVC Architecture Using Servlet And JSP
Java EE Tutorials Servlets Tutorials Servlets Interview Questions Web Architecture Models Different programmers may design an application in different ways. Designing an application depends on how the programmers recognize the problem and approaches for solving that problem. A development model facilitates the design process by separating the code according to the functions performed by different …
Difference Between Servlet and JSP
This tutorial post highlights the important difference between JSP and Servlet technologies. Servlet and JSP are the two key Java server side technologies that are building blocks for any of the Java web frameworks. It is important to know the difference between these two technologies. This is one of the fundamental concept that confuses the many …
Finalize Method – OCPJP 6
2) What will be the output of the following program? The program will output ‘finalize’. It is unsure that the finalize() method will be called by the Garbage Collector. As soon the object reference ‘object’ is set to null, there is a possibility that the method ‘finalize()’ will be called. The program will cause compile-time …
Console API – OCPJP 6
5) What will be the output of the following program? The program will output ‘100.000000 – 100’. The program will output ‘100 – 100.000000’. The program will throw a IllegalFormatConversionException at run-time. The program will output ‘100 – 100’. Get more questions on Console Answer 5) b. Here the ordering of the arguments (anInt and …
NavigableMap – OCPJP 6
NavigableMap is similar to NavigableSet. In NavigableMap we will use key value pairs to reterive the value. see the following code: Look into the following code snippet: In tha bove code NavigableMap API is used for reteriving the less than and greater than value based on key. The output would be like this: 2) What will be the output of the …
NavigableSet – OCPJP 6
NavigableSet API is included in the ocpjp 6 certification exam. This article explains few important methods with simple example program.NavigableSet is the subinterface of SortedSet. This interface defines methods for finding the element in a list. For example lower() method used for finding the element which is less than the given value. Look into the following example: In the …