What is the result? 05/21/2017 – by Mod_GuideK 1 Given: What is the result? A. 7 B. 12 C. 19 D. Compilation fails E. An exception is thrown at run time SHOW ANSWERSCorrect Answer: B Explanation/Reference: Download Printable PDF. VALID exam to help you PASS.
public class X{ static void m(int i){ i += 7; } public static void main(String []args){ int j = 12; m(j); System.out.println(j); } } Reply
public class X{
static void m(int i){
i += 7;
}
public static void main(String []args){
int j = 12;
m(j);
System.out.println(j);
}
}