What is the result? Given: What is the result? Given: What is the result? A. 11, 11 B. 10, 10 C. 21, 11 D. 20, 20 E. 11, 12 Show Hint ← Previous question Next question →
xxx public class Access { static void doubling(Integer ref, int pv){ ref = 20; pv = 20; } public static void main(String[] args){ Integer iobj = new Integer(10); int var =10; doubling(iobj++,var++); System.out.println(iobj + ” ” + var); } } a Reply
A
public class Access {
static void doubling(Integer ref, int pv){
ref = 20;
pv = 20;
}
public static void main(String[] args){
Integer iobj = new Integer(10);
int var =10;
doubling(iobj++,var++);
System.out.println(iobj + ” ” + var);
}
}
a