Small tricky java codes asked in interviews