Java 5 | DeepakGaikwad.net - Part 2
Home » Archive

Articles tagged with: Java 5

Java, Tech Notes »

[6 Jul 2009 | No Comment | ]

Autoboxing feature in Java 5 is to make code look neater and cleaner. Autoboxing, as name suggests, does something automatically. It converts data types from one form to other automatically. This does not apply to any data type but to some selected data types which allow this conversion (generally without losing out any information). Using autoboxing, primitive data type values can be converted into respective wrapper objects and vice versa. Take a look at some of the data types that can avail this feature of autoboxing.

int <– –> Integer
boolean <– …

Java, Tech Notes »

[3 Jul 2009 | 2 Comments | ]

Compared to other changes in Java 5, this is a smaller change. The idea behind this change is to improve how we access collection elements and arrays. In this article, we see how the loop has improved over a period of time through different releases of Java. What are the advantages we get with new for loop? When is it not recommended to use this loop?
Let us see the ugly code to traverse through a collection. You must have written such a code by mistake in very early releases of …

Java, Tech Notes »

[2 Jul 2009 | 5 Comments | ]

Generics, is an important feature introduced in Java 5. Java introduced many other features, but this is the only feature which adds flexibility to strongly type data types. In this article, we try to find answers to these questions: Why do we need this feature? What is this feature? What are different scenarios in usage of Generics? When can we not use Generics? Wherever applicable we take a code example and understand the concept better. Reader of this article should already know the concepts of Java version prior to this …

Java, Tech Notes »

[26 Jun 2009 | No Comment | ]

Java 5 has introduced many new features to take this platform to a new level with 15 component JSRs and around 100 other updates. These changes definitely bring considerable shift in usage of this technology. Java intends to address following important concerns through this ‘Tiger’ release.

Ease of Development
Scalability and Performance
Monitoring and Manageability
Desktop Client Development

These modifications span in most of the areas of Java, but if these are grouped logically, then there can be following important categories to study. This tutorial aims to explain these features in …