Java Versions

Generics Java Tutorial

The main difference between arrays and data structures is array accepts only one type of data and data structure accepts elements of dissimilar data types. See the following code of ArrayList accepting dissimilar data type values.

The above compiles and runs successfully and can be seen in the above…

Try with Resources Example

Every version of Java adds some new features and the latest version JDK 1.7 (as on August, 2013) comes with new additions. Following are the new additions. 1. String in Switch Expression 2. Underscores Between Digits in Numeric Literals 3. Integral Types as Binary Literals 4. Handling multiple exceptions in…

String Switch support

Every version of Java brings some new features to make Java coding simple to practice. JDK 1.7 brought many features and one among is switch statement. Switch is a control structure existing in all programming languages where a switch parameter should be an integer value or convertible to integer. If…

Lambda Function Java

The strength of Java 8 is the introduction of Lambda expression like the strength of Java 5 is annotations. 1. What is Lambda? Lambda, represented as is the 11th letter in in the Greek alphabet and having a value of 30 in Greek numerals. Lambda is used by every science…

JDK 1.8 Features

Following are JDK 1.8 Features Read one-by-one as they are very innteresting. 1. Method References a) With static method:

Arrays.sort(names, Test::matchStringLength); You can call the methods with their names (references) with :: operator. 2. Parallel Sort

Both sort() and parallelSort() sorts the array. The performance with parallelSort() can…

JDK 1.4 Features

JDK 1.4 is one of the major versions released in February, 2002. The work started on the name of "Project Merlin" and includes the developments to support XML processing, java.nio package addition, Security restrictions, Logging API, JDBC 3.0 API, Assertions, Chained exceptions, Regular expressions and Drag and Drop. Two of…

JDK 1.6 JDK 1.7 Versions

JDK 1.6 JDK 1.7 Versions The work for JDK 1.6 started with the name Project Mustang and released on December, 2006. This version is known as Java SE 6 instead of J2SE. This version includes lot of features in GUI execution speed etc. Following list gives. JDK 1.6 Features (of…