File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Compilation unit  and   Integer overflows/underflows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Compilation unit  and   Integer overflows/underflows" Watch "Compilation unit  and   Integer overflows/underflows" New topic

Compilation unit and Integer overflows/underflows

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

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!!!
I agree. Here's the link:
subject: Compilation unit and Integer overflows/underflows