Google
 
Web Compuextra.com

Web Resources
Sponsors:

Links: Volcanoes

Introducing Java 5
The last major release of the Java platform was 1.2. It was so major, in fact, that the language came to be known as Java 2. Later Java releases added a number of new features and fixes, but nothing to get overly excited about. Java 5 (JDK 1.5), however, is another biggie! Autoboxing Autoboxing is a language feature that makes the programmer's life much easier when it comes to working with the primitive wrapper types. Consider this code fragment: int num = 23; Integer numObject = new Integer(num); Primitive wrapper objects, such as the Integer class used here, were Java's way of allowing you to treat primitive types as though they were objects. Consequently, you were expected to 'wrap' your primitive type with the corresponding primitive wrapper object, as shown above. Forget all that! Java 5 allows you to do the following: int num = 23; Integer numObject = num;

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100

Copyright © Compuextra.com 2004
| Sitemap