• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCJP 5 : Here is a sample Question on AutoBoxing/UnBoxing for you to try

 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


(Munged the Topic Title)
[ January 17, 2005: Message edited by: Barry Gaunt ]
 
Joe Borderi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your question is "What will be the output?", then why don't you simply run the code?

If your question is "Why is the output... ?", then you should come back and ask again.
[ January 16, 2005: Message edited by: J Borderi ]
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why can't you post some questions on Autoboxing?
 
Joe Borderi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can post questions on autoboxing, and the one you posted would make a great question for the SCJP test. My question, however, is are you asking "what is the output?" or "why is the output 'SuccessSuccessFailure'?" (I really didn't want to give away the answer to those who may have wanted to test it and reason it out for themselves.)
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might be you can rephase your post title as mock questions for Autoboxing, this might be better, as it is quite misleading that you are seeking help from others instead of giving out sample questions.

Nick
 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry.
question subject is not clear!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic