what are the new features available in java 1.5 version?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you bind variables?

512


What is the difference between a break statement and a continue statement?

580


Can a class have 2 constructors?

483


What is byte data type?

535


What is the use of pattern in java?

496






What is super constructor?

534


Does java runtime require a license?

561


How to sort an array in java without using sort method?

513


Give us the name of the list layoutmanagers in java?

510


Is it possible to compare various strings with the help of == operator?

533


What happens if main method is not static?

483


What are constants?

586


What are the different ways of implementing thread? Which one is more advantageous?

516


What is the static block?

574


What is the difference between an argument and a parameter?

523