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

An equation is shown X + 1 = 9x - 3 What is the solution?
Give three interpretations about the attitudes of men and women towards when it is acceptable for a husband to hit a wife
3 to 6 solve with equations
Which is not a characteristic of linear one-point perspective?
Please I really need help I will give good points these are the last three problems I have I think I did the first one correct but I’m not sure.
help pls, will mark brainliest
Help me plssss!!! Gimme answer!
This list states the properties of two metals at room temperature. Copper’s density is 8.96 grams per cubic centimeter. Lead’s density is 11.4 grams per cubic c
The empirical formula for a compound comprised of 93.71% Cand 6.39% H contains carbon atom(s) and hydrogen atom(s).
What is the result of performing these steps? 1. Draw a line segment with endpoints A and B. 2. Draw point Canywhere on AB. 3. Fold the paper through C so AB li