Day: December 5, 2020

Install OpenJDK 11 on macOS

Install using HomeBrew Manual Install from AdoptOpenJDK See: https://adoptopenjdk.net/installation.html Manual Install from jdk.java.net Update download url based on the latest version available in this download page: jdk.java.net/archive. Listing Installed JDK Version Switching JDK Version Get JAVA_HOME path and set it to environment variable. Add the following to ~/.bashrc , ~/.zshrc etc. JShell Also see: https://docs.oracle.com/en/java/javase/11/jshell/snippets.html

Bitwise Operation: Left Shift and Right Shift

Left Shift Logical Left Shift and Arithmetic Left Shift zeros are shifted in to replace the discarded bits inserts value 0 bits into the least significant bit works for both signed as well as unsigned numbers logical and arithmetic left shift have same effect Left Shift Operator (<<) Same as multiplying value by 2^count (new_value …

Bitwise Operation: Left Shift and Right Shift Read More »