aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Wrappers Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Wrappers" Watch "Wrappers" New topic
Author

Wrappers

Chetan Dodiya
Ranch Hand

Joined: Jun 27, 2008
Posts: 39
this q is from ExamLab



OUTPUT IS
AGAADGBDAF

why in this program wrapper Byte is widen to Number
because Wrapper type cant widen...
so why this program works fine???


SCJP 1.5
Markus Klein
Greenhorn

Joined: Aug 29, 2008
Posts: 19
Widening of reference variable depends on inheritance(so, Integer cannot be widened to Long. But, Integer widened to Number)
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Wrappers
 
Similar Threads
Widening and boxing
overloading example from examlab
Need help on Questions of wrapper classes
Doubt in Devaka's Final Exam Question.
Boxing & Widening