Monday, December 17, 2007

Think u know Java??

Try solving this :-

What do you think must be the output of

System.out.println( (int)(char)(byte) -1 ) ;



Do reply...

Best of Luck

Friday, March 9, 2007

There are 3 gentlemen in a meeting: Mr. Yellow, Mr. Green and Mr. Brown. They are wearing yellow, green and brown ties. Mr. Yellow says: "Did you notice that the color of our ties are different from our names?" The person who is wearing the green tie says, "Yes, you are right!"

Do you know who is wearing what color of tie?

Einstein's Puzzle




Here is a puzzle that the great physicist Albert Einstein allegedly posed
in the last century. He supposedly said that only those with an
intelligence quotient of 98 percentile and higher should be able to solve it.
Can you?

Here is the puzzle:

There are five men of different nationalities living in a row of five houses,
each house being a different color. Each man drinks a different kind of drink,
keeps a different kind of pet, and smokes a different kind of cigar.

The Brit lives in the red house.
The Swede keeps dogs as pets.
The Dane drinks tea.
The green house is to the left of the white house.
The owner of the green house drinks coffee.
The man who smokes Pall Mall keeps birds.
The owner of the yellow house smokes Dunhill.
The man living in the house right in the center drinks milk.
The Norwegian lives in the first house.
The man who smokes Blends lives next to the man who keeps cats.
The man who keeps horses lives next to the man who smokes Dunhill.
The man who smokes Blue Master drinks beer.
The German smokes Prince.
The Norwegian lives next to the blue house.
The man who smokes Blends has a neighbor who drinks water.

Who keeps the fish?