How interviewers ask it“Let's start with the basics — how would you explain Apex?”
What is Apex?
- Object-oriented – supports classes, interfaces, inheritance
- Strongly typed – compile-time type checking
- Database integration – native SOQL and DML operations
- Multitenant aware – designed for Salesforce's shared environment
- Asynchronous support – future methods, batch, queueable
public class MyHelloWorldClass {
public static void sayHello() {
System.debug('Hello World from Apex!');
}
}