What is a valid Apex statement? - ProProfs Discuss
Topics
Products
Follow Us:

What is a valid Apex statement?



A. Integer w,x,y=123, z= abc ;
B. Map conMap = [SELECT Name FROM Contact];
C. Private static constant Double rate = 7.75;
D. Account[] acctList = new List {Account} {new Account()};

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: May 29, 2020

+ Answer
Request

4 Answers

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.

 

zix

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{

 

nocovi

Nocovi

Answered Dec 05, 2016

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

 

John Smith

John Smith

Answered Nov 19, 2016

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

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

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