LukeJV1486 LukeJV1486
  • 21-08-2019
  • Computers and Technology
contestada

What is the output? int[] arr = new int[1]; arr[0] 10; System.out.printin(arr[O]): 01 OArrayIndexOutorBoundsException

Respuesta :

ExieFansler ExieFansler
  • 28-08-2019

Answer:

Syntax Error.

Explanation:

You are creating an array of size 1.There is no assignment operator for arr[0].It should be arr[0]=10.System.out.printin(arr[O]) it should be System.out.println(arr[0]) .If all these syntax are correct then the outputy should be 10 because we have arr[0]=10.But for the code provided the answer is Syntax error because this code has many errors.

Answer Link

Otras preguntas

What is the actual height in feet of the bulding? A.) 22.5 B.) 24 C.) 37.5 D.) 40
Please help u have to the Pythagorean Theorem
Cl.ick this lin.k to pla.y Susp.ects w.ith SuS! https://play.suspects.iopls downl.oad this its a fre.e game c.opy and pa.ste this lin.k​
20 is less than the difference of 5 and twice x.
Details about David by Michelangelo
A closed tank contains pure nitrogen gas at a pressure of 855 mmHg and a temperature of 26.3 °C. What would the pressure be if the tank were heated to 1253 °C?
-6x + 2y = 10 is written in Standard form. Rewrite it in y=form.
Describe and explain the possible values of s, the number of student tickets sold, and e, the number of tickets sold to nonstudents.
i need help pls and thank you
Tyreek Hill of the Kansas City Chiefs, and his agent are evaluating three contract options. Each option offers a signing bonus and a series of payments over the