Java

45 articles in this topic

Methods in Java: Syntax, Parameters, Return Values and Examples

Build and trace a complete Java score program, then learn how arguments, return types, void methods, instance calls and overloads work.

Updated 17 Sep 20265 min readJava

Loops in Java Tutorial: for, while, do-while and Worked Examples

Build one reliable control-flow model for every Java loop. Trace runnable examples, avoid boundary and update errors, and practise counting executions.

Updated 15 Sep 20266 min readJava

Conditionals in Java: if, else if, switch and Worked Examples

Learn Java conditionals by tracing one student-result program from its inputs to its grade, eligibility, scholarship and lab-day outputs.

Updated 14 Sep 20266 min readJava

Variables and Primitive Types in Java: Declarations, Conversions and Worked Examples

Learn how Java declares variables, represents all eight primitive types, promotes operands and handles casts. Then trace a complete program and correct common output traps.

Updated 12 Sep 20266 min readJava

Java Strings and String Pool: Literals, intern(), == and equals() with Worked Examples

Trace pooled and non-pooled Java String references, compare identity with content, and learn to count objects without hiding the assumptions.

Updated 11 Sep 20266 min readJava

Java JDK Setup: Install, Verify and Run Your First Program

Install Java with proof that your compiler and runtime agree. This tutorial separates JDK, JRE and JVM, then traces one program from source to exact output.

Updated 9 Sep 20266 min readJava

Arrays in Java: Declaration, Traversal, 2D Arrays and Worked Examples

Build a correct mental model of Java arrays, then trace sums, aliases, jagged rows, sorting, binary search and common mistakes through exact examples.

Updated 8 Sep 20266 min readJava

DOM Manipulation in JavaScript: Build an Interactive Study Planner

Build a study planner while learning to select nodes, update safe content, delegate clicks, add tasks, and verify every visible total.

Updated 6 Sep 20265 min readJava

JavaScript Basics: Variables, Functions, Arrays and DOM

Learn the language rules behind JavaScript output questions, then follow one complete example from an array of scores to visible DOM nodes.

Updated 5 Sep 20265 min readJava

Inner Classes in Java: Types, Scope Rules and Four Runnable Examples

Learn when Java nested types need an outer object, what they can capture, and how scope resolution works through four runnable programs and one short trace.

Updated 3 Sep 20266 min readJava

JavaScript Strings Tutorial: Methods, Template Literals, and Runnable Examples

Learn strings from their delimiters and zero-based indexes through searching, cleaning, and coercion. Each example is runnable, including a complete input-to-key transformation.

Updated 2 Sep 20265 min readJava

Java Iterators and Comparators: Runnable Examples, Sorting Rules and Common Traps

Learn when to use Iterator, Comparable and Comparator through one Java 17 Student example, exact outputs, cursor traces and safe sorting rules.

Updated 31 Aug 20265 min readJava