My adventurous trip to roam around helsinki in biting cold has paid off
Posts
- Get link
- X
- Other Apps
Java 1.5 Features Metadata : Additional data or annotations can be associated with classes, interfaces, methods and fields. This can be read by annotation tools or at runtime through Java Reflection API. This can be used for generating additional source code or for providing additional debugging information. @debug(devbuild=production,counter=1) public void testMethod() Generic Types : Earlier version’s Collection API stored the values as the instances of ‘OBJECT’ and so required type casting while fetching the objects. The mismatch of data types therefore could not be discovered until runtime. This is now replaced with a possibility to declare the Collection with notation that will detect the mismatch of data types at compile time. ArrayList list = new ArrayList (); list.add(0, new Integer(42)); int total = list.get(0).intValue(); Auto-boxing and auto-unboxing of primitive type variables: The conversion between primitive type variables and their object based counterpart...