Thanks for you reply.
This is an interview question which I faced recently so, that of posting here to get some more information.

can you explain each statement, how it will behave?