Java Interview: Checklist For 2023
Java Interview: Checklist For 2023
com/in/himanshukumarmahuri
JAVA INTERVIEW
CHECKLIST FOR 2023
(TOP 150 Questions & Answers)
SAVE AND SHARE
Table of content-
➢ Object Oriented Programming (OOP)
➢ General Questions about Java
➢ Java Threads
➢ Java Collections
➢ Garbage Collectors
➢ Exception Handling
➢ Java Applets
➢ Swing
➢ JDBC
➢ Remote Method Invocation (RMI)
➢ Servlets
➢ JSP
________________________________________________________________
• Encapsulation
• Polymorphism
• Inheritance
• Platform independent
• High Performance
• Multithreaded
• Portable
• Secure
5. What is Abstraction?
Abstraction is the process of separating ideas from specific
instances and thus, develop classes in terms of their own
functionality, instead of their implementation details. Java
supports the creation and existence of abstract classes that expose interfaces, without
including the actual implementation of all methods. The abstraction technique aims to
separate the implementation details of a class from its behavior.
6. What is Encapsulation?
Encapsulation provides objects with the ability to hide their
internal characteristics and behavior. Each object provides a
number of methods, which can be accessed by other objects
and change its internal data. In Java, there are three access
modifiers: public, private and protected. Each modifier imposes
different access rights to other classes, either in the same or in
external packages. Some of the advantages of using
encapsulation are listed below:
• The internal state of every object is protected by hiding
its attributes.
• It increases usability and maintenance of code, because
the behavior of an object can be independently changed
or extended.
• It improves modularity by preventing objects to interact
with each other, in an undesired way.
8. What is Polymorphism?
Polymorphism is the ability of programming languages to
present the same interface for differing underlying data types.
A polymorphic type is a type whose operations can also be
applied to values of some other type.
You can see the example below where Vehicle interface has the
method increaseVelocity. Truck, Train and Aeroplane
implement the Vehicle Interface and the method increases the
velocity to the appropriate velocity related to the vehicle type.
Methods of a class have the the subclass has method with the name
same name. Each method has a as of a superclass method. It has the
different number of parameters . number of paramers, type of
It can have parameters with parameters and the return type as of a
different types and order. superclass method.
Curated By-
JDK JRE
JDK stands for the JRE stands for the term: Java Runtime
term : Java Environment.
Development Kit.
• short
• int
• long
• float
• double
• boolean
• char
No, Java does not support multiple inheritance. Each class is able to
extend only on one class but is able to implement more than one
interfaces.
Curated By-