To help answer some of the questions concerning binary, octal, and hex conversions I added two new pages to my mock exam. The first of the two provides links to resources such as the relevant sections of the Java Language Specification and the Java API Specification. The second of the two new pages provides a very short tutorial on binary, octal, and hex conversions. Please the new Java Fundamentals Tutorials pages. Click on the Base Conversions link to see the second new page.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Dan, The MAX_VALUE tutorial was excellent. Can you provide some examples of MIN_VALUE? For eg what would be the bit representation for -128 the min value for a byte? My problem is this - I don't know the bit pattern for say, the min value of long or int. Would it be all 1's? Once I have a bit pattern, I know how to convert between different bases. Thanks! Sharda
The minimum (most negative) value for any integer type has the leftmost bit 1, and all other bits 0. A bit pattern of all 1's represents -1. If you don't understand this, think of what happens if you add 1 to that number. [ August 27, 2002: Message edited by: Ron Newman ]
Ron Newman - SCJP 1.2 (100%, 7 August 2002)
Hold that thought. Tiny ad:
SKIP - a book about connecting industrious people with elderly land owners