What does it mean that Apex is an integrated language?
That DML SOQL, SOSL are all integrated and can be used in the code.
What does it mean that Apex is a strongly typed language?
That variables must be declared with a datatype.
int a = 10;
Apex or Point and Click:
Apex or Point and Click:
Create custom transactional logic (logic that occurs over the entire transaction, not just with a single record or object)
Apex
Apex or Point and Click:
Attach custom logic to another operation, such as saving a record, so that it occurs whenever the operation is executed, regardless of whether it originates in the UI, a VF page or from the Web Services API.
Apex
True/False: All variables in Apex allow null as a value and are initialized to null if they are not assigned another value.
True.
In Apex, all variables and expressions have a data type. What are the five kinds of data types in Apex?
True/False: Lists:
True/False: Maps:
True/False: Sets:
True/False: Lists can only contain Primitives and sObjects.
False.
Lists can contain Primitives, sObjects, objects created from Apex classes and collections.
True/False: Sets can only contain sObjects.
False.
Sets can only contain primitives.
True/False: the key, value pair of Maps can be:
Apex classes: What is the difference between:
Apex classes: What is the difference between:
1. Apex supports virtual classes and methods. use "extend" to subclass a virtual class. Note, methods derived from a virtual class can be overridden, but doesn't have to be. 2. Apex supports abstract classes. Methods are defined, but implemented in the subclass. Note, methods derived from an abstract class must be overridden.
Apex classes: What is the difference between:
True/False: A class can only extend one other class, but can implement more than one interface.
True.
True/False: User-defined methods can be polymorphic.
True.
A method named myMethod can be implemented two times with a different number of parameters.
True/False: User-defined methods can be declared as static when defined in a Trigger.
False.
True/False: In Apex, all classes and methods are final by default. By default, classes may not be extended to create sub-classes, and methods may not be overridden within sub-classes.
True.
True/False: A class cannot have a more restrictive access modifier than one of its methods or attributes.
True.
True/False:
2. True
What does the final keyword mean?
Constants that are defined using the final keyword can be assigned at most once, either in the declaration itself or with a static initializer method if the constant is defined in a class.
What is a statement in Apex?
Any coded instruction that performs an action. I.E. Loops, Locking, DML calls, Transaction Control etc.