How the frontend/UI and the backend/object classes actually communicate — and how methods communicate with each other.
Communication happens in both directions between the user interface (frontend) and the object classes (backend), and between methods (including private helper methods) within a class.
Parameters can send data to methods as:
Typed methods/functions can return data as:
Example
// Returning multiple values packed into one delimited String public String getSummary() { return name + "#" + grade + "#" + average; }
Null parameters — passing null as an argument (for an object-type parameter) can be used as a mechanism for abstraction, e.g. signalling 'no value provided' so a single, more generic method can handle multiple slightly different situations, reducing the need for several near-duplicate methods (a code efficiency technique).
💡 Exam Tip
Scope and lifetime are frequently tested together — a variable declared inside a method (local scope) cannot be accessed outside that method, and it stops existing (its lifetime ends) as soon as the method finishes executing.