what is the difference between sun java and oracle java?
The biggest difference in OpenJDK vs. Oracle JDK is in licensing. OpenJDK is completely open source Java while Oracle JDK requires a commercial license. But there are many other differences within support and cost, too.