So what does "high-order bit is set" mean?
"high-order bit" is the left most bit of a given type. For example, if type is integer, which has 32 bits, then the high-order bit is the 32nd bit counting from right to left.
The 32nd bit counting from right to left is 0 in the following case, so the number is a positive number
int max = Integer.valueOf("01111111111111111111111111111111", 2); System.out.println(max);
The result is
2147483647
which happens to be the maximum integer number.
Now let's convert the Hex format number 0xcafebabe to binary format
String s = Integer.toBinaryString(0xcafebabe);
The result is
11001010111111101011101010111110
The high-order bit is 1, therefore, it is a negative number.
I have been meaning to write something like this on my website and you have given me an idea. Cheers.
ReplyDeleteData Science course in kalyan nagar
Data Science course in OMR
Data Science course in chennai
Data science course in velachery
Data science course in jaya nagar
Data Science interview questions and answers
I got the lot of solution for my queries in this blog.Thank you for clarifying my doubts.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Java training in Hyderabad
Java Training in Coimbatore
Java Online Training
Informative post! I really like and appreciate your work, thank you for sharing such a useful information about google ranking factors strategies.
ReplyDeletehardware and networking training in chennai
hardware and networking training in tambaram
xamarin training in chennai
xamarin training in tambaram
ios training in chennai
ios training in tambaram
iot training in chennai
iot training in tambaram
Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
ReplyDeletesap training in chennai
sap training in velachery
azure training in chennai
azure training in velachery
cyber security course in chennai
cyber security course in velachery
ethical hacking course in chennai
ethical hacking course in velachery
Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up..
ReplyDeleteweb designing training in chennai
web designing training in omr
digital marketing training in chennai
digital marketing training in omr
rpa training in chennai
rpa training in omr
tally training in chennai
tally training in omr
Excellent post, From this post i got more detailed information,
ReplyDeleteThanks to share with us,
oracle training in chennai
oracle training in porur
oracle dba training in chennai
oracle dba training in porur
ccna training in chennai
ccna training in porur
seo training in chennai
seo training in porur