Interview Question Library

273 questions across 9 technologies Β· 0 reviewed Β· 0 bookmarked

πŸ”Ž

Filters

Technology
Difficulty
My progress
Sort by

273 questions

β˜•JavaBeginner

Introduction and Java Philosophy

Java is an object-oriented, high-level language designed for 'Write Once, Run Anywhere' (WORA).

β˜•JavaBeginner

Platform Independence & Bytecode

Java code is not compiled into .exe (Windows) or .app (Mac).

β˜•JavaIntermediate

OOP Principles: Pure vs Non-Pure

Java follows four pillars of OOP: Encapsulation (hiding internals), Abstraction (exposing only necessary features), Inheritance (reusing code), and Polymorphism (objects

β˜•JavaIntermediate

Heap vs Stack Memory

Stack memory is used for thread execution and stores local variables and method call frames.

β˜•JavaBeginner

Variables: Scope and Lifecycle

Java variables are categorized by scope: Local variables (within a method, stored on stack), Instance variables (within a class, stored on heap), and Static variables (sh

β˜•JavaBeginner

Encapsulation (Data Hiding)

Encapsulation is the practice of keeping fields private and providing access through public methods (getters/setters).

β˜•JavaBeginner

JVM vs JRE vs JDK

JDK (Java Development Kit) is the full toolbox for developers: includes javac compiler, libraries, and JRE.

β˜•JavaIntermediate

JIT (Just-In-Time) Compiler

The JIT compiler is part of the JVM that speeds up execution by identifying 'hot spots' (code executed frequently) and compiling that bytecode into native machine code at

β˜•JavaBeginner

Constructors and Overloading

A constructor is a special block of code used to initialize a new object immediately after it is created.

β˜•JavaBeginner

Method Overloading vs Overriding

Method Overloading is Compile-Time polymorphism: same method name, different parameters in the SAME class.

β˜•JavaBeginner

The Static Keyword

The 'static' keyword means that a member (variable/method) belongs to the CLASS itself rather than any specific instance.

β˜•JavaIntermediate

Final, Finally, and Finalize

These three are often confused: 'final' keyword makes a variable constant, a method un-overridable, or a class non-inheritable.