Simple Java Screening Questions
Simple Java Screening Questions
1. What is Java?
JDK stands for Java Development Kit. It includes tools for developing and running Java programs.
JRE stands for Java Runtime Environment. It provides libraries and JVM to run Java applications.
JVM stands for Java Virtual Machine. It runs Java bytecode and enables platform independence.
6. What is a class?
7. What is an object?
8. What is a constructor?
Method overloading is when multiple methods have the same name but different parameters.
Method overriding is when a subclass provides a specific implementation of a method from its
superclass.
Encapsulation is wrapping data and methods into a single unit (class) and restricting access to
details.
Abstraction means hiding complex implementation details and showing only essential features.
Polymorphism allows methods to behave differently based on the object that is calling them.
An interface is a reference type in Java, similar to a class, that contains only abstract methods.
Array is fixed in size and type. ArrayList is resizable and part of the Collections framework.
The entry point of a Java program: public static void main(String[] args).
A mechanism to handle runtime errors using try, catch, finally, and throw.
It refers to the parent class and is used to access parent class members.
String is immutable; StringBuilder is mutable and fast; StringBuffer is mutable and thread-safe.
Specifies the type of data a variable can hold (int, char, float, etc.).
public members are accessible from anywhere, private only within the class.
Compile-time is when code is converted to bytecode; run-time is when the program runs.