what are the new features available in java 1.5 version?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is difference between public static and void?
What is difference between static and abstract class?
WHAT IS JDK,JVM,CLASS DEFINE ALL?
What is java reflection api?
Can you write a java class that could be used both as an applet as well as an application?
how to make a un-checked exception as a checked exception one.
explain how many oops concepts available in java with realtime scenarios?
List out five keywords related to exception handling ?
Why arraylist is not synchronized in java example?
What are the notations in Java?
What is the difference between method and constructor ?
Is an object null?