TCS interview question

Basic Java concepts, and coding, like swapping ,pallindrome