JDK全称是Java SE Development Kit .Java历经了二十几年的发展,到现在已经发布到了JDK10的版本。随着版本的改进,新的特性越来越多的加入,类似5.0引入的泛型,8.0引入的lambda和stream API都对开发有极大的效率提升,不可避免的需要对技术进行升级。同时,主流的开发框架工具spring,mybatis,maven等都会跟随jdk版本进行升级,所以需要一个开发者同时具备多个开发环境。
Do you agree to the terms of this agreement? (Y/n): y
Downloading: java 8.0.161-oracle In progress... ######################################################################## 100.0%
Repackaging Java 8.0.161-oracle...
Done repackaging...
Installing: java 8.0.161-oracle Done installing!
Setting java 8.0.161-oracle as default. $ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) $ sdk list java
In progress... ######################################################################## 100.0%
Repackaging Java 7.0.141-zulu...
Done repackaging...
Installing: java 7.0.141-zulu Done installing!
Do you want java 7.0.141-zulu to be set as default? (Y/n): n $ sdk default java 7.0.141-zulu
Default java version set to 7.0.141-zulu $ java -version openjdk version "1.7.0_141" OpenJDK Runtime Environment (Zulu 7.18.0.3-linux64) (build 1.7.0_141-b11) OpenJDK 64-Bit Server VM (Zulu 7.18.0.3-linux64) (build 24.141-b11, mixed mode)