The result is short. My question is, When a method is called, What about method invocation promotion? byte, short, char are promoted to int and passed to corresponding method with signatures. Is that correct?
Thanks in advanced!
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
posted 7 years ago
A datatype (here byte) is promoted to the narrowest datatype (here short) that is big enough to hold the value (here 100).