Multiple Choice Question

Quiz Guidelines

 

QID: 
480
Question: 

Consider the following method:

    static int mx(int s){
        for(int i=0; i<3; i++){
            s = s + i;
        }
        return s;
    }

and the following code snippet:    

int s = 5;
        s += s + mx(s) + ++s;
        System.out.println(s); 

What will it print?

Select 1 option

A. 21 
B. 22
C. 23
D. 24
E. 25
F. 26

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!