Bits&Bytes

Learn how Java supports bitwise arithmetic and where these tricks are used in the Java Development Kit (JDK)

"I have been teaching Java to professional programmers for over 19 years. During this time, I am constantly amazed how many programmers have moved over from other disciplines such as psychology, architecture, chemistry, accounting and even the military. Whilst fine programmers, they often miss some of the more fundamental education that a computer science major would have covered. I am hoping that this Bits & Bytes Course will help fill this gap and will result in a better tomorrow with programmers that are more able to understand what makes our world work. In the end, it's all just ones and zeros." - Dr Heinz M. Kabutz, Author of The Java Specialists Newsletter, Java Champion, JavaOne Rockstar Speaker, Computer Scientist, Teacher

In this course you will learn how to:

1. convert between different bases, such as octal, decimal, hexadecimal and binary.
2. do bitwise arithmetic with AND, OR, XOR and COMPLEMENT
3. shift bits left and right and what the difference is between unsigned and signed shift
4. print the internals of int and float.
5. negate a number using 2's complement and why Math.abs(n) might be negative
6. understand rounding errors and how represent decimal numbers in binary.
7. write a great hashCode() method in Java with the least number of bucket collisions.
8. compare BitSet with EnumSet and discover practical use cases in the JDK.

Bits&Bytes has 3 1/2 hours of lectures by renowned computer expert Dr Heinz Kabutz. Read what some of his readers had to say about his work:

Henri Tremblay - "I've been coding in Java since 1998. And still, everytime I read the Java Specialists Newsletter, I learn something."
Simon Ritter - "Heinz gives well researched clear explanations and guidance on many tricky aspects of Java. A goldmine of useful information!"
John Green - "I enjoyed this course even though I thought I knew everything I needed to know about bits and bytes. In fact, I thought that I probably didn't need to use low level knowledge like this in Java - that I could leave it to C programmers ;-) Instead, I've found not just that it is still very much in use by JDK developers, even code added to Java 9, but that I should probably read more on floating point numbers before I can consider my knowledge to be complete. The practical tips on hashing and bit sets will be useful for programming in future."

Are you ready to join our course?

Here are some more reasons

1. Ask questions in the course material and get a guaranteed response from the course author within three working days or your money back.

2. Simple no-nonsense 30-day money back guarantee, no questions asked.

3. Invite to private Facebook group with Heinz Kabutz and other students


Your Instructor


Dr Heinz M. Kabutz
Dr Heinz M. Kabutz

Heinz Kabutz is the author of The Java Specialists’ Newsletter, a publication enjoyed by tens of thousands of Java experts in over 150 countries. He has been a Java Champion since 2005.


Course Curriculum



Frequently Asked Questions


How long do I have access to a fully paid course?
How does lifetime access sound? After enrolling, you have unlimited access to this course for as long as you like - across any and all devices you own. Furthermore, if we move to another platform, we will offer you a free transfer of your account for all the courses that you have purchased.
Can I pay via PayPal?
Yes, you can for outright purchases, but not for recurring payments such as paying by installments.
Can I get back the EU VAT?
Absolutely. First off, be sure to enter the VAT number in the appropriate field during the payment process. Then contact Teachable and ask them to reimburse you the VAT.
May I share my login details with my colleagues?
Unfortunately not. The terms of usage are for a single license. Teachable tracks your progress through the curriculum, so you won't know how much you have watched. We offer discounts on bulk licenses by one company. Please contact us for bulk licensing.
May we use the course for running in-house courses?
You may, as long as each of the students in the class has a valid license for that course. For example, some companies run lunch time Design Patterns study groups using our material. This is an effective way to learn. Please contact us for bulk licensing.
What if I am unhappy with the course?
We would never want you to be unhappy! If you are unsatisfied with your purchase, contact us in the first 14 days to tell us what you are unhappy about, and we will give you a full refund and deregister you from the course.
When does the course start and finish?
The course starts now and never ends! It is a completely self-paced online course - you decide when you start and when you finish. We do recommend putting time aside and setting goals to complete the course.
Can I watch the course offline during my commute?
Teachable have an iOS app that lets you watch offline. Android is not supported unfortunately.

Get started now!