Question: What is the output of the below Java program? public class AI int variable 1; } public class Testing & public static vold main (String[]
What is the output of the below Java program? public class AI int variable 1; \} public class Testing \& public static vold main (String[] args)[ A obj 1 = new A0; obj1.variable 1=100; A obj2; obj2=obj1; obj j= new A0; obj2.variable 1=300; System.out.print ln("Result="+ obj1.variable 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
