function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VJayVJay 

Which three declarative fields are correctly mapped to variable types in Apex.

Which three declarative fields are correctly mapped to variable types in Apex?

Choose 3 answers.

A. Checkbox maps to Boolean
B. Number maps to Integer
C. Date/Time maps to Datetime
D. TextArea maps to List of type String
E. Number maps to Decimal
 
Raj VakatiRaj Vakati
A , C , D 
PreyankaPreyanka
Hello VJay,

Its A,C, E i.e Checksbox to Boolean, Date/Time to Datetime and Number to Decimal

For B Number maps to Integer you will get error message in Apex called Illegal assignment from Decimal to Integer
For D TextArea maps to List of type String you will get error message in Apex called  Illegal assignment from String to List<String>

Thanks
Preyanka
Bhargavi TunuguntlaBhargavi Tunuguntla
Hi Vijay,

A
E
C

D - Is not an option because of TextArea Maps to String
B - Is not an option because Number Maps to Decimal
Dhanik L SahniDhanik L Sahni
A
E
C