Ask Question
26 January, 17:40

What is the output of this code sequence? (Be exact in your answer with spacing) double [] a = {12.5, 48.3, 65.0}; System. out. println (a[1]);

+1
Answers (1)
  1. 26 January, 20:27
    0
    48.3

    Explanation:

    double [] a = {12.5, 48.3, 65.0}; This line creates the array a, which has three values, those three values can be accesed with the index operator, [].

    System. out. println (a[1]); This line prints in the console the value in the array a in the second position, in Java the index inside arrays starts from zero, then puts a new line.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the output of this code sequence? (Be exact in your answer with spacing) double [] a = {12.5, 48.3, 65.0}; System. out. println ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers