ApexSensei

Built by a working Salesforce developer

Build your Apex skills with hands-on practice

Write Apex, check your solutions, and progress from variables to triggers, tests, and asynchronous code. Start in your browser, then practice in your own Salesforce Developer org.

Start your first free drill Browse all drills

About 5 minutes to start. No Salesforce org needed for your first drill. 41 free drills across Apex basics and Classes & objects.

  • Write real Apex
  • Get automatic feedback
  • Track your progress

How it works

  1. Try your first drill. Complete a short Apex exercise in your browser.
  2. Connect a practice org. Use a free Salesforce Developer org for exercises that run in Salesforce. Production orgs are blocked.
  3. Practice and track progress. Submit solutions, review automatic results, and work through the topics.

Topics: 103 drills in 9 modules

Start with 41 free drills across Apex basics and Classes & objects. Continue with Apex Path for $19 a month after a 7-day trial.

  1. Apex basics (31 drills, beginner, free). Variables, numbers, text, dates, if and switch, loops, Lists, Sets and Maps. Your Apex foundation.
  2. Classes & objects (10 drills, beginner, free). Classes, constructors, methods, access modifiers, exceptions and enums.
  3. SOQL queries (15 drills, intermediate). SOQL and SOSL: filters, bind variables, relationships, aggregates, date literals and safe dynamic queries.
  4. DML operations (9 drills, intermediate). Insert, update, upsert and delete, Database methods, save results, savepoints and bulk-safe DML.
  5. Unit testing (10 drills, intermediate). Apex test classes that fail when the code is wrong: assertions, test data, mocks and callout mocks.
  6. Triggers (10 drills, intermediate). Before and after triggers, handler classes, bulk patterns, recursion guards and roll-ups.
  7. Asynchronous Apex (6 drills, advanced). Future methods, Queueable, Batch and Schedulable Apex.
  8. Debugging (8 drills, intermediate). Fix real production bugs: queries and DML in loops, null checks, recursion, mixed DML, empty tests and batch state.
  9. Security & deployment (4 drills, advanced). Governor limits, security and the habits that survive a production deploy.

Turn what you learn into Apex practice.

Use ApexSensei alongside your learning resources to practice writing Apex through focused exercises with automatic checking.

Questions people ask

What is ApexSensei?

ApexSensei is a practice site for Salesforce Apex. You work through 103 short drills in 9 modules, from your first variable to triggers, tests and async Apex. Most drills run in your own free Salesforce Developer org, so you practice on the real platform.

Is ApexSensei free?

Yes, to start. The Write Apex and Think in classes modules (41 drills) are free to check and run. Every other drill is free to read. Apex Path unlocks checking and running the other seven modules for $19 a month after a 7-day free trial.

Do I need a Salesforce org?

Not for your first drill. It runs in the browser and takes about 5 minutes. After that, drills run in a free Salesforce Developer org that you connect to ApexSensei. You can sign up for one at developer.salesforce.com.

Can ApexSensei touch my company's production org?

No. ApexSensei blocks production orgs. Connect a Developer org that you use only for practice.

How is ApexSensei different from Trailhead?

Trailhead teaches the platform with modules and quizzes. ApexSensei is where you practice. You write the Apex yourself, run it in your org, and every drill is checked automatically. Many people use both: learn a topic on Trailhead, then drill it here.

How long does a drill take?

Between 5 and 25 minutes. Most take about 15.

Who built ApexSensei?

Firus Hanov, a Salesforce developer with more than 8 years of enterprise experience and the author of Learning Apex: The Complete Developer's Guide for Salesforce Admins.

Start your first Apex drill today.

Practice in your browser in about five minutes. Continue with 41 free drills across two introductory modules.

Start your first free drill See pricing