Method Overloading in Java
Several methods may share a name if their parameter lists differ, and the compiler decides which one runs before the program starts.
Suitable for beginners.
104 notes tagged
Several methods may share a name if their parameter lists differ, and the compiler decides which one runs before the program starts.
A method groups a piece of behaviour behind a name, a parameter list and a return type, and that signature is the contract callers depend on.
Every looping construct in Java, when each one fits, and how break, continue and labels change the flow.
Decision making in Java, from the plain if statement to modern switch expressions and pattern matching.
The three comment forms, the reserved words you cannot use as names, and the naming conventions every Java codebase follows.
Reading from the keyboard and writing to the console, with the Scanner pitfall that catches almost every beginner.
Java operators grouped by purpose, with the precedence rules, short circuit behaviour and integer arithmetic surprises that trip people up.
Widening happens by itself, narrowing needs a cast and can lose data, and casting a reference only changes how the compiler sees an object.
Java has eight primitive types and everything else is a reference. Knowing which is which explains assignment, defaults and equality.
Install a JDK, understand every word in the classic first program, and learn what compilation and execution actually do.
Java is a statically typed, object oriented language that compiles to bytecode and runs on a virtual machine, which is what makes it portable.
Thirty multiple choice questions on document structure, elements, text, links, lists and images. Questions only - verify each answer by building it.