Multiple Choice Question

Quiz Guidelines

 

QID: 
288
Question: 

Note: This question may be considered too advanced for this exam.

What will the following code print when run?

public class TestClass{     
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);    } }

Select 1 option 

A. 5 and 20 
B. 6 and 515 
C. 6 and 20 
D. 6 and 615 
E. It will not compile.

Q&A Set: 

Search the Web

Custom Search

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