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

What is the syntax and characteristics of a lambda expression? Explain

0 Answers  


What is sleep method?

0 Answers  


what is unreachable code problem in multiple catch statements

3 Answers  


for(i=0;i<100;i++) { int i=method();//method returns no's from 1 to 10; /* insert some stmts which can give output like no.of times numbers(1-10) returned. (for example if it returns 2 then i want output how many times 2 returned) like that i want output for no's 1 - 10 how many times each no returned. */ }

3 Answers  


Difference between string s= new string (); and string s = "abv";?

0 Answers   Cap Gemini,






What is the difference between processes and threads?

0 Answers  


Why pass by reference is not possible in java?

0 Answers  


How the interruptible method gets implemented?

0 Answers  


Why we use protected in java?

0 Answers  


Is this valid in java ? Can we instantiate interface in java?

0 Answers  


Difference between static and dynamic class loading.

0 Answers  


What are the problems faced by java programmers who don't use layout managers?

0 Answers  


Categories