Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation unit and Integer overflows/underflows

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi everybody,
I have two questions :
Q1) What is a compilation unit?
Q2) How does Java handle Integer underflows and overflows?

In Zaworski's site the answers mentioned are :
1) A java source code file.
2) It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
Can anybody explain the answers please!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic