This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes arithmetic promotion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "arithmetic promotion" Watch "arithmetic promotion" New topic
Author

arithmetic promotion

luk Hann
Ranch Hand

Joined: Jan 29, 2001
Posts: 48
Please clear my doubt why no need of an explicit casting at line 1:

Thanks.
luk
Michael Burke
Ranch Hand

Joined: Jul 29, 2000
Posts: 103
When you use the += operator the compiler performs an implicit cast for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: arithmetic promotion
 
Similar Threads
A question about "- -"
A SCJP exam question (about array variable assign)
Just Don't Understand
Array confusion
Doubt About the output of this Question