What will be the output of the program?class PassA { public static void main(String [] args) { PassA p = new PassA(); p.start(); } void start() { long [] a1 = {3,4,5}; long [] a2 = fix(a1); System.out.print(a1[0] a1[1] a1[2] ' '); System.out.println(a2[0] a2[1] a2[2]); } long [] fix(long [] a3) { a3[1] = 7; return a3; } } - Study24x7
Social learning Network
21 Feb 2023 04:48 PM study24x7 study24x7

What will be the output of the program?class PassA { public static void main(String [] args) { PassA p = new PassA(); p.start(); } void start() { long [] a1 = {3,4,5}; long [] a2 = fix(a1); System.out.print(a1[0] + a...

See more

A

12 15

B

15 15

C

3 4 5 3 7 5

D

3 7 5 3 7 5

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles