Question: what is the difference between sun jdk and openjdk?
Answer: Licenses. Oracle JDK was licensed under Oracle Binary Code License Agreement, whereas OpenJDK has the GNU General Public License (GNU GPL) version 2 with a linking exception. There are some licensing implications when using Oracle's platform. ... However, OpenJDK is completely open source and can be used it freely.