The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 362 Weeks Ago, 2 Days Ago |
| Questions Answered: | 5502 |
| Tutorials Posted: | 5501 |
MBA.Graduate Psychology,PHD in HRM
Strayer,Phoniex,
Feb-1999 - Mar-2006
MBA.Graduate Psychology,PHD in HRM
Strayer,Phoniex,University of California
Feb-1999 - Mar-2006
PR Manager
LSGH LLC
Apr-2003 - Apr-2007
please help with the multiple choice
Â
Â
what would be the result of attempting to compile and run the following program
Â
class MyArray
{
Â
public static void main (String[]arg)
{
int size = 20;
double [] arr = new double [ size] ;
for (int i =0;i <size,i++)
System.outln(arr[i]);
}
}
Â
a.the code will not compile, because the int[] array declaration is incorrect
b. the program will compile and run, but will produce no output
c.the program will compile and run, and will display the numbers 0 through 19
d. the program will compile and run, and will display the numbers 0.0 twenty times
e. the program will compile and run, and will display the numbers 0.0 nineteen times
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- T-----------han-----------k y-----------ou -----------for----------- us-----------ing----------- ou-----------r w-----------ebs-----------ite----------- an-----------d a-----------cqu-----------isi-----------tio-----------n o-----------f m-----------y p-----------ost-----------ed -----------sol-----------uti-----------on.----------- Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m o-----------nli-----------ne -----------or -----------inb-----------ox -----------me -----------a m-----------ess-----------age----------- I -----------wil-----------l