• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with clone.......

 
sonir shah
Ranch Hand
Posts: 435
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Answer : It will print "false true"
Can any one explain me why does it print such an answer??
I agree with the second part of the answer i.e(true), But why is ia==ja said to be false??(Since they both are Integer arrays)
Sonir
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh come on! You already know the answer to that. Think! They are two separate objects! What does == test?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic