Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compilation unit and Integer overflows/underflows

 
amit sanghai
Ranch Hand
Posts: 231
  • 0
  • 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!!!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic