Java Programming and Technical

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

Read Solution (Total 2)

Java Other Question

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.
Q. What is a native method?

A. A native method is a method that is implemented in a language other than Java.