Apex never needs to be rewritten when other parts of Database.com are upgraded. Because
the compiled code is stored
as metadata in the platform, it always gets automatically upgraded with the rest of the
system.
Easy to test
Apex provides built-in support for unit test creation and execution, including test results that
indicate how much code
is covered, and which parts of your code could be more efficient. Database.com ensures that
Apex code always work as
expected by executing all unit tests stored in metadata prior to any platform upgrades.
Versioned
You can save your Apex code against different versions of the Force.com API. This enables
you to maintain behavior.