Numeric Promotion

Reading Time: 2 minutesHi all, In this post, we will cover numeric promotion in Java. Make sure that you know the bit-length of each primitive types before you proceed. 8-bit 16-bit 32-bit 64-bit byte short, char int, float long, double Assume that you add, subtract, multiple, or divide two primitive types. Should you care about the resulting data

Read More

Java Building Blocks

Reading Time: 1 minuteHi, My first blog post is about OCA Java 8 Programmer I certification. I am going to post my notes chapter by chapter. Here is quick introduction.. Packages java.lang package is imported by default. Java primitive types There are 8 primitive types in Java: boolean, byte, short, int , long, float, double, and char. 8

Read More