apex Flashcards

1
Q

hosted

A

apex is saved, compiled, and executed on the server - the lightning platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

object oriented

A

apex supports classes, interfaces, and inheritance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

strongly typed

A

apex validates references to objects at compile time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

multitenant aware

A

because apex runs in a multitenant platform, it guards closely against runaway code by enforcing limits, which prevent code from monopolizing shared resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

integrated with the database

A

it is straightforward to access and manipulate records. apex provides direct access to records and their fields, and provides statements and query languages to manipulate those records.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

data focused

A

apex provides transactional access to the database, allowing you to rollback operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

easy to use

A

apex is based on familiar java idioms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

easy to test

A

apex provides built-in support for unit test creation, execution, and code coverage. salesforce ensures that all custom apex code works as expected by executing all unit tests to any platform upgrades

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

versioned

A

custom apex code can be saved against different versions of the API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

apex supports

A
  • classes, interfaces, properties, and collections (including arrays)
  • object and array notation
  • expressions, variables, and constants
  • conditionals and control flow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

UNLIKE other OOP languages, apex supports:

A
  • cloud development as Apex is stored, compiled, and executed in the cloud
  • triggers, which are similar to triggers in DB systems
  • transactions and rollbacks
  • the global access modifier, which is more permissive than the public modifier and allows access across namespaces and applications
  • versioning of custom code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

case

A

apex is a case-insensitive language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Apex data types

A

primitives: Integer, Double, Long, Date, Datetime, String, ID, Boolean, etc.

sObject: either as a generic sObject or as a specific sObject, such as an Account, Contact, or MyCustomObject__c

collection: list/array of primitives, sObjects, user defined objects, objects created from Apex classes, or collections; a set of primitives; a map from a primitive to primitive, sObject, or collection
enum: typed list of values

user-defined Apex classes

system-supplied apex classes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

the following DML statements are available

A
insert
update
upsert
delete
undelete
merge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

upsert

A

creates new records and updates sObject records within a single statement, using a specified field to determine the presence of existing objects, or the ID field if no field is specified

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

merge

A

merges up to three records of the same sObject type into one of the records, deleting the others, and parenting any related records