Question: Activity 1: Give the expected output of the given code Lawrence java package com.company ; import java.oi.*; public class Lawrence { public static void

Activity 1: Give the expected output of the given code

Lawrence java

 

package com.company ;
import java.oi.*;
public class Lawrence {
public static void main(String[ ] args) {
int [ ] [ ] arr = { {1,2}, {3,4} } ;

System.out.print(arr [0] [1] + arr [1] [1] );
}
}

 

Lawrence java

 

package com.company ;
import java.oi.*;
public class Lawrence {
public static void main(String[ ] args) {
int [ ] [ ] arr = { {1,2}, {3,4} } ;

System.out.print(arr [1] [1] + arr [1] [0] );
}
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!