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 |
Is int a class in java?
what is diffrence between .NET and java?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
we cannot create an object of interface but we can create a variable of it
Can we declare a class as static?
What is class and object in java?
What is the default access specifier for variables and methods of a class?
what is the Yield() method used in threads?
Why do you canvas?
What is difference between call by value and call by reference?
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is constructor and its types?