Wednesday, April 16, 2014

OCJP Practice question #18

2:47 PM

What will be the output of following java program ?

Answer :
Option A is correct,  call(i) will go to call(int i) method as i is primitive data type.

call(I) will go to call(Integer I) method as I is an reference variable. 

Match case's always have the higher priority. 

Next Question here : OCJP


Post a Comment


© 2014 DieHardTechy . All rights resevered. Designed by Diehardtechy