Java

75 articles in this topic

var vs let vs const in JavaScript: Scope, Hoisting and the Temporal Dead Zone

Trace block scope, early reads, loop callbacks, and const object mutation using the rules behind common JavaScript output questions.

Updated 30 Oct 20265 min readJava

this Keyword in JavaScript: call, apply, bind and Arrow Functions with Interview Traps

Determine this from the call site, compare explicit binding methods, and see why arrows behave differently in callbacks and object methods.

Updated 30 Oct 20265 min readJava

JavaScript Promises and async/await Explained: Error Handling, Execution Order, and Output Questions

Build a precise call-stack and queue model, use it to predict six output lines, and see why one missing await can move a rejection beyond try/catch.

Updated 30 Oct 20266 min readJava

Interface vs Abstract Class in Java: Differences, Default Methods and Exam Questions

Replace the old textbook rule with a current comparison, then solve the two-default-method conflict that appears in Java output and compilation questions.

Updated 30 Oct 20267 min read67 viewsJava

Exception Handling in Java: Checked vs Unchecked, finally Traps and Output Questions

Replace guesswork with precise Java exception rules. Trace two classic finally outputs, order catches correctly, and preserve causes when wrapping failures.

Updated 30 Oct 20266 min readJava

Arrays and Strings in Java for Coding Rounds: The Core Patterns That Keep Coming Up

Stop treating every coding-round question as a new puzzle. Learn four reusable array and string patterns, then trace a sliding window on abcabcbb step by step.

Updated 30 Oct 20266 min read87 viewsJava

Java Interview Questions for Freshers: How to Answer OOPs, Strings, Collections and Exceptions

Prepare the Java questions freshers actually face, then learn to explain each output instead of stopping at a memorised definition.

Updated 6 Aug 20265 min readJava

Pattern Printing Programs in C, Java and Python: One Method for Every Star and Number Pyramid

Stop memorising separate pattern programs. Learn how two row-wise decisions generate star pyramids, number triangles and their common variations in C, Java and Python.

Updated 30 Oct 20265 min read60 viewsJava

Java Coding Interview Questions: Programs Asked in Service-Company Drives

Prepare the short Java programs that recur in fresher drives. Learn the core string, array, number and collections patterns, then trace an O(n) Two-Sum solution.

Updated 30 Oct 20265 min readJava

OOPs Concepts in Java: Inheritance, Polymorphism, Abstraction and Encapsulation with Worked Interview Questions

Turn the four OOP pillars into predictable Java behaviour. Trace superclass references, subclass objects, overridden methods, hidden fields and common follow-ups.

Updated 30 Jul 20265 min readJava

JavaScript Interview Questions for Freshers 2026: Core Concepts, the DOM and ES6+

Prepare for JavaScript fresher interviews by reasoning through scope, closures, this, async execution, ES6+ and DOM behaviour. Includes the classic loop-closure trace.

Updated 30 Oct 20266 min readJava

Java vs Python for Placements in India 2026: Test Formats, Company Preferences and a Decision Guide

Choose one placement language by test access, DSA fluency and the interview story you want to tell. Then learn just enough of the second language to stay flexible.

Updated 29 Oct 20266 min readJava