Master the concepts of Salesforce in just 45 days Click here to know more.
Are you a smart person who loves to communicate with people? If yes, then join us as a Business Development Executive.
A variable is a named value holder in memory. In Apex, local variables are declared with Java-like syntax.
The name we choose for a variable is called an identifier. Identifier can be of any length but it must begin with an alphabet. The rest of the identifier can include digits also.
Apex Constants are the variables whose values don’t change after being initialized once.
Constants can be defined using the final keyword.
Constants can be assigned almost once either in the declaration itself or with a static initialization method if the constant is defined in a class.
final integer a =5;
Note: We cannot use the final keyword in the declaration of a class or a method because in apex classes and methods are by-default final and cannot be overridden or inherited without using the virtual keyword.
Integer i = 123;
String str = ‘abc’;
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill out the form and get consulted by our Salesforce experts.
Fill out the form to figure out to detemine the perfect Salesforce profile for yourself.
Fill the form below to get a demo of this course.
Fill out the form to get your Premium Salesforce Development Course
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.