What is a valid Apex? - ProProfs Discuss
Advertisement

What is a valid Apex?

Asked by Catherine halcombe, Last updated: Mar 27, 2024

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

Christian Jackson

Christian Jackson

Christian Jackson
Christian Jackson, Content Developer, Austin

Answered Feb 01, 2019

There is no valid Apex statement out of all the choices that are available. You can try to input the different formulas and you will get the error message each time. The Apex statement is important because this will show the condition that each table will have in order to display the right data. Without the right formulas, people will be unable to get the information that they need.

Apex can do a lot of things for you. It will be easier to generate the professional and important data that you need as long as you would input the right information. Through the data that you will get, you can get significant cost savings too.

upvote downvote
Reply 

zix66

zix

zix66
Zix

Answered Dec 15, 2016

No one correct!

1. Integer w,x,y=123, z= abc ; // sure error!
2. Map conMap = [SELECT Name FROM Contact];
must be at least Map 'ID,Contact' conMap = new Map ...

3. Private static constant Double rate = 7.75;
must be instead of constant → final
4. Account[] acctList = new List {new Account()};

correct is Account[] acctList = new List{

upvote downvote
Reply 

nocovi

nocovi

nocovi
Nocovi

Answered Dec 05, 2016

NO one is correct.
Account [] accList = new List {new Account()};

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Nov 19, 2016

Account[] acctList = new List {new Account()};
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.