0% found this document useful (0 votes)
4 views4 pages

Java Interview Questions-1

The document contains a series of Java interview questions covering topics such as JDBC, the differences between Applets and Java Applications, types of exceptions, Servlets, JDK vs JRE, JVM, and JSP pages. Each question provides a concise explanation of the concepts involved. Additionally, there are prompts for further engagement with the ProTechStack platform for job alerts and expert questions.

Uploaded by

pradeep.tulagapu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Java Interview Questions-1

The document contains a series of Java interview questions covering topics such as JDBC, the differences between Applets and Java Applications, types of exceptions, Servlets, JDK vs JRE, JVM, and JSP pages. Each question provides a concise explanation of the concepts involved. Additionally, there are prompts for further engagement with the ProTechStack platform for job alerts and expert questions.

Uploaded by

pradeep.tulagapu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

10/07/2025, 22:59 Java Interview Questions

What is JDBC? Entry

JDBC is an abstraction layer that allows users to choose between databases. JDBC enables
developers to write database applications in Java without having to concern themselves with the
underlying details of a particular database.

Java Interview Questions


ProTechStack Hire Posts Interview About

What is the difference between an Applet and a Java Application? Entry

Applets are executed within a Java-enabled browser.

Java application is a standalone Java program that can be executed outside of a browser.

However, they both require the existence of a Java Virtual Machine (JVM). Furthermore, a Java
application requires a main method with a specific signature, in order to start its execution. Java
applets don’t need such a method to start their execution. Finally, Java applets typically use a
restrictive security policy, while Java applications usually use more relaxed security policies.

What are the two types of Exceptions in Java? Which are the differences Entry

between them?

Java has two types of exceptions: checked exceptions and unchecked exceptions.

Unchecked exceptions do not need to be declared in a method or a constructor’s throws


clause if they can be thrown by the execution of the method or the constructor, and propagate
outside the method or constructor boundary.

On the other hand, checked exceptions must be declared in a method or a constructor’s


throws clause.

What is a Servlet? Entry

https://protechstack.com/interview/java-interview-questions?gad_source=1&gad_campaignid=17877245460&gbraid=0AAAAADFpNV2bmYB4ypeakJ6… 1/4
10/07/2025, 22:59 Java Interview Questions

The servlet is a Java programming language class used to process client requests and generate
dynamic web content.

Servlets are mostly used to process or store data submitted by an HTML form, provide dynamic
content and manage state information that does not exist in the stateless HTTP protocol.

What is the Difference between JDK and JRE? Entry

The Java Runtime Environment (JRE) is basically the Java Virtual Machine (JVM) where
your Java programs are being executed. It also includes browser plugins for applet execution.

The Java Development Kit (JDK) is the full-featured Software Development Kit for Java,
including the JRE, the compilers, and tools (like JavaDoc, and Java Debugger), in order for a
user to develop, compile and execute Java applications.

What is JVM? Why is Java called the "Platform Independent Programming Entry

Language”?

A Java virtual machine (JVM) is a process virtual machine that can execute Java bytecode.

Each Java source file is compiled into a bytecode file, which is executed by the JVM. Java was
designed to allow application programs to be built that could be run on any platform, without
having to be rewritten or recompiled by the programmer for each separate platform.

A Java virtual machine makes this possible because it is aware of the specific instruction lengths
and other particularities of the underlying hardware platform.

What is a JSP Page? Entry

A Java Server Page (JSP) is a text document that contains two types of text:

static data and

JSP elements.

Static data can be expressed in any text-based format, such as HTML or XML. JSP is a technology
that mixes static content with dynamically-generated content.

https://protechstack.com/interview/java-interview-questions?gad_source=1&gad_campaignid=17877245460&gbraid=0AAAAADFpNV2bmYB4ypeakJ6… 2/4
10/07/2025, 22:59 Java Interview Questions

Write custom middleware functions Expert


Upgrade to Unlock Full Access
Upgrade
Upgrade ProTechStack
to get full answer account To Unlock 1000+ Expert Questions, Jobs & lift your
dev career
function middleFunc(req,res,next){

req.message:'Hello'

next()

} Upgrade Rs 99 - Lifetime Access

Get questions asked at top companies

Job posting alerts from top platforms like Linkedin, Naukri, Monster, Google Careers
etc in one place

Ace Your Dev Career with top Interview Questions, Job Alerts & Referrals
from Top Companies

https://protechstack.com/interview/java-interview-questions?gad_source=1&gad_campaignid=17877245460&gbraid=0AAAAADFpNV2bmYB4ypeakJ6… 3/4
10/07/2025, 22:59 Java Interview Questions

Know More
Copyright © 2024 - ProTechStack Terms of Service Privacy and Cookies Refunds & Cancellation Pricing

LinkedIn Instagram Facebook

https://protechstack.com/interview/java-interview-questions?gad_source=1&gad_campaignid=17877245460&gbraid=0AAAAADFpNV2bmYB4ypeakJ6… 4/4

You might also like