answersLogoWhite

0

Java 1.5 has many new features, compare to Java 1.4. See the link for a complete explanation. Some of the features are:

* Generics (e.g. typed collections, like Set<String>) * Enhanced for loop (for (String s : set) {...}) * Autoboxing/unboxing (automatically convert between types like Integer to int and vice versa) * Typesafe enums (enum is now a keyword, types can be created out of enums) * Varargs (for printf() function, allows variable number of arguments) * Static import (can now import static methods of a class, such as java.lang.Math) * Annotations

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between Mnemonics and hexadecimal representation?

Mnemonics is a method of remembering things by associascation. Hexadecimal is a number system. 0-9 are as usual and then a(10) b(11) c(12) d(13) e(14) f(15)


Will you give us 10 to 15 different projects of advance java so that we can study advance java?

A good program display a model of human cells, and test different mutations.


What is a difference between b-15 lens on ray-ban glasses and polarized lens?

B-15 lens are brown in color and G-15 lenses are gray-green. Polarized lenses come in both colors and on the lens it's written Ray Ban P


What are the cordinates of java?

Java, one of the main islands of Indonesia, is centered near 7&deg;30&prime;10&Prime; S, 111&deg;15&prime;47&Prime; E and stretches from about 106&deg; E to 114&deg; E , along the northeast edge of the Indian Ocean in southeast Asia. The Indonesian capital of Jakarta is on Java.


What is the difference between sign and unsign in Java?

Normally, signed and unsigned data types just refer to whether or not a value can be negative or not. An unsigned 4-bit value can be the values 0 to 15 A signed 4-bit value can be the values -8 to 7 However, there is no such thing as an unsigned value in Java*. All primitive types are signed by default and cannot change. *Note that technically a char value can be considered an unsigned type. The only way to see this is to declare a char with value '\uffff' (or 65535) and try to print it out as both a short and an int. If you try this with any other data types, the larger values will display the same as the smaller values. Not so with the char example.