Question: answer this please 16 Multiple Choice 2 points The output from running ParameterPassing2.java is: class Data 4 int age = 15; 6 class ParameterPassing2 7

answer this please

answer this please 16 Multiple Choice 2 points
16 Multiple Choice 2 points The output from running ParameterPassing2.java is: class Data 4 int age = 15; 6 class ParameterPassing2 7 { 80 void func(int x, Data d) 9 10 x += 1; 11 d. age += 1; 12 130 public static void main (String args) 14 15 int num=1; 16 Data d = new Data(); 17 ParameterPassing2 p = new ParameterPassing2( ) ; 18 p. func (num, d); 19 System. out . printIn(num + " " + d.age); 20 21 } O 1 16 O 216 2 15 O 1 15

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 Accounting Questions!