This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello, Is there an easy way to convert a big binary number to an integer or long and viceversa. For example given a number 10000000 00000000 00000000 00000101 (-2147483643) Is there an easy way to do this and Will the Java certification have number like this in any of the questions and require us to convert into another type.
The exam is not designed to be a math test, so you won't see any questions that give you a binary value and ask you to convert it to decimal. You might find some binary, octal or hexadecimal values on the exam; so it would be a good idea to make sure that you understand what those values represent. Understanding binary values is also helpful when you are working with the shift operators.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>