+ 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); } }
2 Answers
+ 1
it will compile.
0
The code doesnât even compile, it has a few errors