Java used to be favourite programming language for most of the developers. It was initially developed by sun microsystems. Oracle then took over Sun micro systems. Java used to be free till version 8 (Java 8). But Oracle has changed it license agreements recently. Following link provides clarity on the terms and condition to use Java. Following are free Java alternatives.