This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes Wrapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "Wrapping" Watch "Wrapping" New topic
Author

Wrapping

Porchelvi Vendhan
Greenhorn

Joined: Sep 08, 2001
Posts: 21
Hi!
When int is assigned a value greater than its max. value ,then it wraps around.
But what happens when a byte is assigned a value greater than 127.
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Porchelvi,
Best way to find out is to write some code and see what happens
I'm going to move this over to the Certification Study forum; this one is just for posting Mock exam errors.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Wrapping
 
Similar Threads
Beersong
Wrapping
Increment operator
question on maximum value of primitive data type
casting/autoboxing make simple?