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

How is the bill of rights structure organized, and how does the organization help on achieving the purpose of the document
Previous 20 Next End of Semester Test: Algebra 18 © Subm Test Reader Tools into . Save Ex Tracy invested in a share of stocks with an annual interest rate of 3%
Which statement is true about the letter H? It has line symmetry only. It has rotational symmetry only. It has both line and rotational symmetry. It has neithe
can you find x for the following equation? 7x+12=3(5x-12)
PLEASE HELP ASAP! WILL GIVE BRAINLIEST Part A: Solve –mk – 110 > 75 for m. Show your work. Part B: Solve 2c – 8f = 24 for f. Show your work.
The Bill of Rights is another name for the first ten amendments to the United States Constitution. True False
How many coins did julia collect
Can someone help in circulatory system
If an object moves faster and faster, what must change?
what is the volume of a right cone having a base diameter of 10 cm and a height of 9 cm?