Tech Me More

To quench our thirst of sharing knowledge about our day to day experience & solution to techincal problems we face in our projects.

Advertise with us !
Send us an email at diehardtechy@gmail.com

Wednesday, April 16, 2014

OCJP Practice question #18

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

No comments: