ness technologies interview questions java

This interview conducted for a permanent position on 24 Nov 2018 at ness technologies Bangalore. Here are the questions which have asked in the first round. All questions are based on memory. You may not be asked the same questions again, but you will get an overview.

  1. Tell me about yourself?
  2. How hashmap internally work?
  3. Can we have the duplicate key in hashmap?
  4. Write a program to reverse a string(each word). For example, if the input is ram is a good boy then out should mar si a doog yob.
  5. Suppose we have an array 010101010101010101, write a program which prints 000000000 111111111.
  6. missing number from 1 to 100.
  7. What is the difference between comparable and comparator? when we will use comparabe and when we will use comparator?
  8. Singleton design pattern. eager and lazy singleton.
  9. Difference between RestController and Controller.
  10. Use of ResponseBody.