Oracle 1Z0-808 Exam question no. 3

Q.– Which two array initialization statements are valid?
A)   int array[ ] = new int [ 3 ];
       array[0]= 1;
        array[1]= 2;
        array[2]= 3;

B)   int array[ ] = new int [  ] {1,2,3};

C)   int array[ ] = new int [3] {1, 2, 3};  

D)   int array[ ] = new int [3];
      array = {1, 2, 3};

E)   int array[3] = new int [ ] {1, 2, 3}; 



⧪ please give your answer in a comment section.

Post a Comment

9 Comments