Java Programming and Technical Programming Technical

Q. Where pragma is used?

A. Pragma is used inside the servlets in the header with a certain value. The value is of no-cache that tells that a servlets is acting as a proxy and it has to forward request. Pragma directives allow the compiler to use machine and operating system features while keeping the overall functionality with the Java language. These are different for different compilers.

Read Solution (Total 0)

Java Other Question

Q. What is the purpose of apache tomcat?

A. Apache server is a standalone server that is used to test servlets and create JSP pages. It is free and open source that is integrated in the Apache web server. It is fast, reliable server to configure the applications but it is hard to install. It is a servlet container that includes tools to configure and manage the server to run the applications. It can also be configured by editing XML configuration files.
Q. Briefly explain daemon thread.

A. Daemon thread is a low priority thread which runs in the background performs garbage collection operation for the java runtime system