01Chapter 1: Declare and Call a MethodA method is a named set of instructions that performs a task. You can write those instructions once and run them whenever you need them. This helps keep a program easier to read and change.2 min read
02Chapter 2: Pass Arguments to ParametersA method is a named set of instructions. You can call a method, or run it, whenever you need those instructions. Arguments let you give a method different values each time you call it.2 min read
03Chapter 3: Return Results or Use voidA method can produce a result for the rest of a program to use. Its return type tells Java what kind of result to expect. For example, an int return type means the method returns an integer, or whole number.2 min read
04Chapter 4: Call Static and Instance MethodsA method is a named set of instructions that a program can call. In Java, a method can belong to a class or work with an object.3 min read
05Chapter 5: Understand Parameter and Local Variable ScopeA variable’s scope is the part of a program where you can use its name. Scope matters because a variable declared in one part of a method may not be available in another.2 min read
06Chapter 6: Trace Primitive Values and Object ReferencesJava uses pass-by-value when calling a method. This means each parameter receives a copy of the corresponding argument’s value. A parameter is a variable in a method’s declaration. An argument is a value given to the method when it is called.2 min read
07Chapter 7: Control Method AccessAn access modifier is a word that controls where a method can be called. Choosing the right access level lets other code use the methods it needs while keeping internal details hidden.2 min read
08Chapter 8: Overload Methods with Different ParametersMethod overloading lets you use the same method name for different sets of inputs. For example, you might want to add two numbers or three numbers while using the name sum for both tasks.3 min read
09Chapter 9: Accept Variable Numbers of ArgumentsA method is a named group of instructions. An argument is a value you give a method when you call it. A parameter is a name the method uses for an incoming value.2 min read
10Chapter 10: Handle and Declare ExceptionsAn exception is a signal that something went wrong while a program was running. For example, a method that reads a file may not find it. Instead of returning a normal result, the method can signal the problem to the code that called it.3 min read
11Chapter 11: Write Methods That Call ThemselvesA method can call itself to solve a problem in smaller steps. This technique is called recursion. It can be useful when a problem has a simple answer for a small input and a rule for reducing larger inputs.2 min read
12Chapter 12: Override Instance MethodsAn instance method is a method called on an object. Overriding lets a child class provide its own version of an instance method from a parent class.2 min read
13Chapter 13: Write Generic MethodsA generic method can work with more than one type while keeping the types of its inputs and result connected. This lets you reuse one method instead of writing a separate version for each type.2 min read
14Chapter 14: Design Clear Method ContractsA method contract is an agreement about what a method expects and what it does. A method is a named piece of code you can call to do a job. A clear contract lets people use a method without reading all its code.2 min read