Java

93 articles in this topic

Varargs in Java: Syntax, Array Behaviour and Overloading Traps

One Java method can accept zero, one or several arguments. Trace how varargs use arrays, see when mutations affect the caller, and distinguish compilation errors from runtime exceptions.

Updated 6 Dec 20265 min readJava

Java Introduction and JDK Setup Interview Questions: Compile, Run and Debug

Explain what happens between a Java source file and its output. Practise terminal setup checks, trace a two-number program and repair package, classpath and version errors.

Updated 5 Dec 20265 min readJava

Java Variables, Data Types and Loops MCQs: 12 Solved Questions with Output Traces

Trace 12 Java MCQs on variables, primitive and reference types, literals, expressions and loop syntax. Each answer includes the rule and exact output.

Updated 4 Dec 20267 min readJava

Java Operators and Type Conversion MCQs: 10 Solved Questions with Output Traces

Practise ten Java questions on relational, logical, arithmetic, bitwise and equality rules. Each solution follows operand types, values and side effects.

Updated 4 Dec 20267 min readJava

Variables, Data Types and Loops in Java: Worked Traces and Exam Traps

Learn to trace Java programs by tracking each variable's type, scope and current value through every condition and update.

Updated 3 Dec 20266 min readJava

Java Executor Framework Interview Questions: Thread-Pool Traces and Coding Problems

Trace tasks through bounded Java thread pools, calculate Future results, explain rejection, and repair common Executor Framework mistakes.

Updated 2 Dec 20265 min readJava

File Handling in Java: Read, Write, Append and Copy Files Safely

Learn how Java's Path, Files, character streams and byte streams fit together. Build a score file, aggregate its rows, and copy binary data safely.

Updated 2 Dec 20265 min readJava

Java Cross-Concept Problems: Generics, Polymorphism, Collections and Exceptions

Learn a fixed reading order for Java problems that mix declared types, runtime dispatch, generic wildcards, list mutations, comparator sorting and exception control flow.

Updated 1 Dec 20266 min readJava

Java GUI Programming with Swing and AWT: Components, Events and Exam Traps

Learn one reliable way to read Java GUI code: map the container and layout, place each component, then trace the listener on the EDT. A complete Swing marks calculator connects the model to common objective and code-trace traps.

Updated 30 Nov 20265 min readJava

Database Connectivity in Java MCQs and Short Answers: 11 Solved JDBC Questions

Solve 11 current JDBC question-bank records with a clear dependency map. The set covers four driver types, API roles, connection setup, compile-time and runtime failures, and the right method for SELECT.

Updated 29 Nov 20267 min readJava

Java Operators and Type Conversion: Rules, Traces and Traps

Trace Java expressions by operand type, promotion, evaluation order and final conversion. Worked examples expose the output and compile-time traps that mental arithmetic misses.

Updated 28 Nov 20266 min readJava

JVM Architecture and Lifecycle: Class Loading, Memory Areas and a Worked Bytecode Trace

Follow one Java program from its class files through loading, linking, initialization, stack frames, heap reachability and JVM shutdown.

Updated 28 Nov 20266 min readJava