Question: Question 7 What is the output? public class B { int number; public void call(B obj) obj.number - -; } } public class temp {

 Question 7 What is the output? public class B { int

Question 7 What is the output? public class B { int number; public void call(B obj) obj.number - -; } } public class temp { B objl = new BO; obj.number = 1; objl.call(obj1); System.out.println(objl.number); Your answer: 2 ype here to search

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