What is the result?

Given the code fragment:
int n [] [] = {{1, 3}, {2, 3}};
for (int i = n.length-1; i >= 0; i—) {
for (int y : n[i]) {
System.out.print (y) ;
}
}
What is the result?
A. 1324
B. 413
C. 3142
D. 4231

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

  1. public static void main(String[] args) {
    int n[][]={{1,3},{2,3}};
    System.out.println(n.length);//2
    for(int i=n.length-1;i>=0 ;i–){
    for(int y :n[i]){
    System.out.print(y);
    }
    }
    }
    the result 2313

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.