java 11 download for mac code example
Example 1: install java 11 mac
$ brew cask install java
Example 2: can i have both java7 and java 11 in mac
brew cask install java7
brew cask install java6
$ brew cask install java
brew cask install java7
brew cask install java6