Raja Samy

Greenhorn
+ Follow
since Aug 20, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raja Samy

Hi,

Please let me know the link of ONLINE K&B SCJP 1.4 Book.

or

please let me know the link to download it if available.
Thanks
Hey Thanks Kamol.
I will chk it up.
public class Test {
public static void main(String[] args){

String[] arr = { "this ", "is", "a", "java", "program"};
List list = Arrays.asList(arr); //Converted to list

System.out.println(" " + list);//otput //1

arr[0] = "THIS"; //add changes in array //2
System.out.println(" " + list);//changes reflectd in list //3
}
}
In the class above, the line //1 prints [this , is, a, java, program]
after that i am changing the arr[0] element in the String Array in line //2.
But line three prints, [THIS, is, a, java, program]
I am wondering how it is printing the modified value?; i am changing the 0th value in the String Array only not in the list; also I am not calling Arrays.asList(arr); after the line //2. But still it prints the changes made.
Can any one explain this flow
??
Any class that includes a finalize method should invoke its superclass' finalize method. is thie True?