Keywords Tour
By the end of this lesson, you'll be able to:
- Recognize the Apex keywords introduced so far, gathered into one reference
- Identify a handful of keywords not yet covered that appear often in real code
- Use this lesson as a lookup reference rather than something to memorize in one sitting
Prerequisites: Module 12: "Project: Student Management"
Keywords you already know
| Keyword | What it does | Where you met it |
|---|---|---|
public, private, protected |
Access modifiers | Module 10 |
static |
Belongs to the class, not one object | Module 10 |
virtual, override, abstract |
Control inheritance behavior | Module 11 |
extends, implements |
Inheritance and interfaces | Module 11 |
new |
Creates an object | Module 10 |
return |
Hands a value back from a method | Module 9 |
if, else, switch, when |
Decisions | Module 6 |
for, while, do |
Loops | Module 7 |
break, continue |
Loop control | Module 7 |
Nothing here is new syntax — this table is a reference to come back to, not a new list to memorize.
A few keywords coming soon
try,catch,finally— handling errors gracefully, covered later in this very module.class,interface— you've used these already without naming them directly as keywords.with sharing/without sharing— controls record-level security, covered in a later security module.transient— marks a field that shouldn't be saved between certain operations, covered when it becomes relevant.
Seeing an unfamiliar keyword in real Apex code is normal — even experienced developers look things up. This tour exists so an unfamiliar keyword feels like "oh, that's covered later" rather than a mystery.
Exercise
As a comment, name which keyword from the table above you'd use to make a method belong to the class itself rather than to any one object.
Show hint
Covered in Module 10.
Keywords Tour Quiz
My Notes
Log in to keep private notes on this lesson.
Questions about this lesson
No questions yet — be the first to ask.
Log in to ask a question about this lesson.
Summary
This lesson gathers the Apex keywords covered across Modules 1-12 into one reference, and previews a few more you'll meet soon — a lookup tool, not new material to memorize all at once.