what are the new features available in java 1.5 version?

Answers were Sorted based on User's Feedback



what are the new features available in java 1.5 version?..

Answer / pawan

Java 1.5 has the following features
Boxing and UnBoxing
Generics
Enums
Variable argument parameters
StringBuilder
static imports
in method overriding, overriding method can have the sub
type of overriden method

Is This Answer Correct ?    40 Yes 3 No

what are the new features available in java 1.5 version?..

Answer / srinath

Enhanced for

for (a: b)
{

}

here b is an array and for every value of array will be
assigned to a and the for loop is executed.

Is This Answer Correct ?    18 Yes 0 No

what are the new features available in java 1.5 version?..

Answer / t.jaya govind sudhakar

as above they told we have assert and enhanced forloop.
assert is placed in place of if. just a slight diff....if we
are handling with more objects then most of the cases we are
using enhanced forloop .

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Core Java Interview Questions

Can we create an object of private class?

0 Answers  


what happens when we add the objects morethan the size limit to a hashmap

1 Answers  


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


What language is pass by reference?

0 Answers  


What does exclamation mean in java?

0 Answers  






How can we avoid including a header more than once?

0 Answers   Fidelity,


What is the type of lambda expression?

0 Answers  


class A{ some variables; public void a()throws Excepion1,Exception2{....} } class B extends A{ variables... public void a()throws E2,E3{.....} } Qns: here override of methods occurs or not,ore else wil give any compilation error or run properly..plz tell me briefly whts happening with the above codes....

4 Answers   Quinnox,


If a method is declared as protected, where may the method be accessed in java programming?

0 Answers  


How GUI component handle its own events?

1 Answers  


Is a boolean 1 bit?

0 Answers  


can we take more than one null values for Unique constraints.

1 Answers   3i Infotech,


Categories