what is features of jdk 1.5?

Answers were Sorted based on User's Feedback



what is features of jdk 1.5?..

Answer / sivasubramanian.k

(1)Generics:Provides compile-time (static) type safety for
collections and eliminates the need for most typecasts
(type conversion). (Specified by JSR 14.)

(2)Metadata: Also called annotations, allows language
constructs such as classes and methods to be tagged with
additional data, which can then be processed by metadata-
aware utilities. (Specified by JSR 175.)

(3)Autoboxing/unboxing: Automatic conversions between
primitive types (such as int) and primitive wrapper classes
(such as Integer). (Specified by JSR 201.)

(4)Enumerations: The enum keyword creates a typesafe,
ordered list of values (such as Day.MONDAY, Day.TUESDAY,
etc.). Previously this could only be achieved by non-
typesafe constant integers or manually constructed classes
(typesafe enum pattern). (Specified by JSR 201.)

(5)Swing: New skinnable look and feel, called synth.
Varargs: The last parameter of a method can now be declared
using a type name followed by three dots (e.g. void drawtext
(String... lines)). In the calling code any number of
parameters of that type can be used and they are then
placed in an array to be passed to the method, or
alternatively the calling code can pass an array of that
type.

(5)Enhanced 'for loop': The for loop syntax is extended
with special syntax for iterating over each member of
either an array or any Iterable..

Is This Answer Correct ?    20 Yes 0 No

what is features of jdk 1.5?..

Answer / sakthivel(gceb)(n.p)pollachi

it provides the working facilities like
applications,applets and core java based programs

Is This Answer Correct ?    4 Yes 5 No

Post New Answer

More Core Java Interview Questions

Is vector ordered in java?

0 Answers  


What is a loop java?

0 Answers  


Is it possible for yielded thread to get chance for its execution again ?

0 Answers  


Is char * a string?

0 Answers  


suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?

3 Answers  






what is synchronization? : Java thread

0 Answers  


List some features of the abstract class.

0 Answers  


What is lazy activation?

2 Answers   CMC,


What language is pass by reference?

0 Answers  


what is object deep copy and shallow copy and why it is required?

2 Answers  


What is the list interface in java programming?

0 Answers  


what type of questions asked for barclays technologies pune please send urgent

0 Answers  


Categories