What is the result?

Given:


What is the result?
A. 7
B. 12
C. 19
D. Compilation fails
E. An exception is thrown at run time

Download Printable PDF. VALID exam to help you PASS.

One thought on “What is the result?

  1. 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);
    }
    }

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.