Tag Archives: Java 5.0

Introduction to Java Agents

June 16, 2012

3 Comments

In this article we will discuss about Java Agents. Java Agents are software components that provide instrumentation capabilities to an application. In the context of agents, instrumentation provides the capability of re-defining the content of class that is loaded at run-time. We will discuss this in more detail in the further sections. Download Source Code: [...]

email

java.util.Objects- A static utility for objects introduced in Java 7

June 6, 2012

6 Comments

A lot of you would be unaware of this new static utility for objects introduced in Java 7- its the java.util.Objects class. I came across this usage of class while I was browsing through the updated Java 8 collections API. The static utility methods added as part of java.util.Objects class allow us to perform null-safe [...]

Generics in Java 5.0

August 14, 2007

3 Comments

1) Introduction The feature of Generics in Java allows Applications to create classes and objects that can operate on any defined types. Programmers can now make use of the Generics feature for a much better code. There is no need for un-necessary casting when dealing with Objects in a Collection. This article provides a detailed [...]

New Features in Java 5.0

August 14, 2007

6 Comments

1) Introduction Java 5.0 comes with a bunch of useful features. In this article, we are going to have an overview of the features like Enhanced for-loop, Variable Arguments, Static Imports and Enumerations. Apart from these features, we have already published other notable features in Java 5.0, auto boxing, generics and annotations. Buy generics book [...]

AutoBoxing in Java 5.0

August 12, 2007

2 Comments

1)Introduction In the latest version of J2SE 5.0 released by Sun, Autoboxing is one of the new feature. Before J2SE 5.0, working with primitive types required the repetitive work of converting the primitive types into wrapper classes and vice – versa. Sometimes the purpose of conversion is just for some API call, after which the [...]

Annotations in Java 5.0

August 11, 2007

29 Comments

1) Introduction Annotations in Java is all about adding meta-data facility to the Java Elements. Like Classes, Interfaces or Enums, Annotations define a type in Java and they can be applied to several Java Elements. Tools which will read and interpret the Annotations will implement a lot of functionalities from the meta-information obtained. For example, [...]