Menu
Question Index
...

What will be the output of the following program?

public class ArrayDemo
{
    public static void main(String[] args)
    {
        long[][] values = new long[2][];
        values[0] = new int[2];
        values[1] = new int[3];
        values[0][1] = 015L;
        System.out.println(values[0][1]);
    }
}


15    
0
015L
Compilation Error or Runtime Error

Doubts

Problems

Topic: Java Multidimensional Array

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App