+ 2

Output of program:

package com.abc; public class pqr { public static Integer wiggler (Integer x){ Integer y = x + 10; x++; System.out.println (x); return y; } public static void main(String[] args){ Integer dataWrapper = new Integer (5); Integer value = wiggler (dataWrapper); System.out.println (dataWrapper+value); } }

25th Mar 2018, 11:58 AM
Vartika Pahuja
Vartika Pahuja - avatar
2 Answers
+ 1
it will compile.
26th Mar 2018, 1:43 AM
Vartika Pahuja
Vartika Pahuja - avatar
0
The code doesn’t even compile, it has a few errors
25th Mar 2018, 6:51 PM
TurtleShell
TurtleShell - avatar