Difference Between Java 5 and Java 6
Today Java has become one of the most widely object oriented programming languages and it is crucial in using from software development to web development. Java was originally developed by Sun Microsystems in 1995 and it is a strongly typed language that supports a range of platforms from Windows to Unix. From its inception, Java has traveled a long journey to reach as java 6, and hence it is important to know the difference between Java 5 and Java 6.
Initially it was releases in 1995 as Java (1.0) and it has covered a long journey up to the Java 6, which is the latest and modified version of Java 5.To know the difference between both, let us first know about both separately.
What is Java 5 : Known as codenamed Tiger, it was released in September 2004. Before it expiring in November 2009, Java 5 introduced major updates like languages improvements -Annotations, Generics, Autoboxing and other.
What is Java 6: Its codename is Mustand and it was released in December 2006. It has 3700+ classes and many interface which focus on new specifications and APIs including XML, Web Services, JDBC version 4.0 and other.Difference between Java5 and Java6
In terms of feature added, Java 5 provides compile-time static type safety for collections and eliminates the need for most typecasts. Java 6 supports for older win 9x versions dropped and it scripted long support. Generic API for integration with scripting languages and built in mozilla java script rhino integration.
Again Java 6 is the current update version of Java programming language where as Java 5 has officially passed its lifetime. However Java 5 provided many more useful changes like Autobxing to the languages, Java 6 also adds more useful and significant features for Java languages.
However Java 5 introduces and important Annotations in its time, Java 6 added additional types of annotations and also APIs for processing annotations.
Java 5 mainly focused on adding and improving the languages i.e. syntax features while Java 6 added broad range of enhancements to the infrastructure in the field of java languages.
Recommend the tutorial