You need to sign in to do that
Don't have an account?
Minhaj Arifin 5
Returning an Array (or list)
I wanted to reach out to get an explanation of these questions. Your comments will help me better understand Apex. Thanks!
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi Manhaj,
Please see below iimage
Hope this helps.
Thanks,
Gaurav
All Answers
If you think Array vs list both are doing almost same work. but the only difference is Array size you need to define before instance as shown below
String[] arrays = new String[5];
Once you define you cannot increase the size.
In case of list you no need to worry of size and you can add any number elements (heap size Limits are there ) as shown below
List<String> str = new List<String>() ;
You can use both interchangeably.
Thank ,
Raj
Hi Manhaj,
Please see below iimage
Hope this helps.
Thanks,
Gaurav
Thank you Gurav for providing these answers! Really appreciate it guys.