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

 What is the output? public class B { int number; public

What is the output? public class B { int number; public void call(B obj){ obj.number + +; } } public class temp { public static void main (String[] args) B objl = new BO; obj.number = 1; obj1.call(obj1); System.out.println(obj 1.number); } } Your answer: 0 1 O 2 O 3 error

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!