Java, Spring Boot interview experience with Cybage, Gandhinagar

Company: Cybage
Inteview Time: March 2018

Round 1

  1. Introduction
  2. Give name of tools used in the past
  3. MSA (micro service architecture)
  4. What is eureka
  5. Rate yourself in different technology
  6. What is EJB
  7. Spring framework and modules introduction
  8. Full form of REST
  9. Any other framework that supports REST ?
  10. What is docker?
  11. What is main config file for docker and what is inside that file?
  12. OOPS principles in brief
  13. Core understanding of polymorphism
  14. Can i achieve polymorphism using only class or using interface? what should i use ?
  15. Give me example requirement where i can use class as base? (i.e. abstract class)
  16. Have you used any design pattern? any scratch implementation?
  17. Can you explain prototype design pattern? where should i use that?
  18. Any idea of design principles?
  19. What do you think java is pass by value or reference
  20. What are the annotations you have used in spring?
  21. Where can i use @Configuration?
  22. Is there any other way which we can use instead of @Configuration
  23. How many types of injectors in spring ?
  24. On which fields i can use @Autowired?
  25. If i have two objects and i want object 2 intialize after object 1, how can i achieve that?
  26. EJB vs Spring and why spring is more popular than EJB?
  27. If i have to use hibernate ORM how can i configure that?
  28. How many types of entity managers are there in hibernate framework
  29. How to define an entity?
  30. Give example mapping of departments and students and table schema
  31. Is there any diff between REST services and Spring REST
  32. Difference between PUT and POST method
  33. What will be url mappings for REST web services with example
  34. What are annotations above controller class?
  35. Difference between @ReuestMapping and @GetMapping?
  36. How can i achieve to get XML and JSON response? how can i mention what kind of response i want?
  37. What do you mean by microservice? and what can i get from using that?
  38. Do you know functional programming? have you worked with it in java?
  39. Any idea on java lambda?
  40. What is MongoDB?
  41. What type of database is mongoDB? (document store) and other types of databases are used? (i.e. SQL, NoSQL, Graph)
  42. How to decide to use NoSQL or SQL?

Round 2

  1. What are OOPS concepts and explain in detail
  2. Difference between abstraction and encapsulation?
  3. What are ways to restrict inheritance?
  4. How to restrict attributes/fields in inheritance?
  5. Are static fields inherited?
  6. Is polymorphism always runtime?
  7. What is method overloading and overriding?
  8. I have two overloading methods of type int and long and when i call those method with val 1, which will be called?
  9. What are methods of Object class?
  10. Why wait method is part/inside of object? do you think it right idea/reason to put it there?
  11. When to override hashcode and equals method?
  12. How hashcode and equals method are related to hashset?
  13. Internal structure of hashset
  14. How actual objects will be stored inside collection like hashset?
  15. What is immutable?
  16. How to make class immutable?
  17. Difference between using string literal and string constructor
  18. Benefits of having string pool
  19. Why to clone while returning collection or object from immutable?
  20. Difference between hashmap and hashtable
  21. Difference between hashtable and concurrent hashmap
  22. How to implement spring security and how it works internally?
  23. How spring will come to know whether i am allowed to use particular endpoint or my current role
  24. What are bean scopes in spring?
  25. Difference between singleton and prototype
  26. Is prototype scope is same as request scope in spring?
  27. Difference @Component and @Controller/@Service
  28. In which scenario you will use Node JS?
  29. How Node JS is better in some scenarios? features of Node JS
  30. Which one is better GIT or SVN?
  31. Which tool are you using for Task management
  32. Knowledge of build tools like Jenkins
  33. Find second highest and second lowest from an unsorted array.