Sun Certified Java Programmer<BR>Oracle Certified DBA
Originally posted by Harry Chawla:
[B]Ha...It got u guys too...
My dear Friends
In case of any doubt, pls try to use the elaborate and excellent search facility of JAVARANCH.
Pls refer to the following link for explanation. http://www.javaranch.com/ubb/Forum24/HTML/002661.html
Thanks.
Thanks,
It is much clear now, so this question is wrong not the answer
Mick
Originally posted by Ravindra Jain:
Hi Ravi & Tejas,
pls refer above given links to find out why is the difference.
(http://www.javaranch.com/ubb/Forum24/HTML/002661.html)
I'm giving the part of the answer (thanks to Carl):
by Carl Trusiak :
"The answer is defined in what equals() does in the Calendar class. It does a comparision of the Date and Time of the Calendar Object to 1/100 of a second. The faster the machine is that you are running on, the more time you'll get true as a response. The slower, the more times you'll get false. Fast CPU's can perform many operations in 1/100 of a second including the creation of Calendar Objects. On my PC, it returns true for
a.equals(b)? true
and for
b.equals(c)? true
and also for
a.equals(c)? true
This is because the three objects where created all within that 1/100 of a second. Try creating 10 of them and see how many your PC can create on average in 1/100 of a second. "
now I hope the answer will be very clear to both of u.
good luck for both of u.
thanks,
Ravindra..
Originally posted by Ravi Chandiran:
Hi, I tried this out but the answer for me is
False
True
Why is the difference !
Can anybody explain ! Thanx in advance
Ravi
Regards,<BR> Faisal Naveed
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |