Tag Archives: Kool
Interesting Java Facts -2
Here is a interesting Java question. What should be values of x and y in below to make the while loop infinite / non terminating
while (x <= y&& x >= y && x != y) {
System.out.println(“hello”);
}
Hint: Answer lies in autoboxing.
Ok, the answer is
Integer x = new Integer(0);
Integer y = new Integer(0);
Now try to think why?
Want a better IQ?
If you want better IQ, just switch to Opera, or may be FireFox. But don’t use IE 6. Sounds ridiculous? Check this link.
Antivirus Marketing strategy?
It has happened to me twice now. Days before my anti-virus subscription is about to finish, I start getting messages that some virus or worm has infected my system which was successfully cleaned up by the anti-virus. Just wondering if this is some marketing strategy by these anti-virus companies to tell us about the importance of their software or a sheer coincidence?