Java, Spring Boot interview experience with Cybage, Gandhinagar
Company: Cybage
Inteview Time: March 2018
Round 1
- Introduction
- Give name of tools used in the past
- MSA (micro service architecture)
- What is eureka
- Rate yourself in different technology
- What is EJB
- Spring framework and modules introduction
- Full form of REST
- Any other framework that supports REST ?
- What is docker?
- What is main config file for docker and what is inside that file?
- OOPS principles in brief
- Core understanding of polymorphism
- Can i achieve polymorphism using only class or using interface? what should i use ?
- Give me example requirement where i can use class as base? (i.e. abstract class)
- Have you used any design pattern? any scratch implementation?
- Can you explain prototype design pattern? where should i use that?
- Any idea of design principles?
- What do you think java is pass by value or reference
- What are the annotations you have used in spring?
- Where can i use @Configuration?
- Is there any other way which we can use instead of @Configuration
- How many types of injectors in spring ?
- On which fields i can use @Autowired?
- If i have two objects and i want object 2 intialize after object 1, how can i achieve that?
- EJB vs Spring and why spring is more popular than EJB?
- If i have to use hibernate ORM how can i configure that?
- How many types of entity managers are there in hibernate framework
- How to define an entity?
- Give example mapping of departments and students and table schema
- Is there any diff between REST services and Spring REST
- Difference between PUT and POST method
- What will be url mappings for REST web services with example
- What are annotations above controller class?
- Difference between @ReuestMapping and @GetMapping?
- How can i achieve to get XML and JSON response? how can i mention what kind of response i want?
- What do you mean by microservice? and what can i get from using that?
- Do you know functional programming? have you worked with it in java?
- Any idea on java lambda?
- What is MongoDB?
- What type of database is mongoDB? (document store) and other types of databases are used? (i.e. SQL, NoSQL, Graph)
- How to decide to use NoSQL or SQL?
Round 2
- What are OOPS concepts and explain in detail
- Difference between abstraction and encapsulation?
- What are ways to restrict inheritance?
- How to restrict attributes/fields in inheritance?
- Are static fields inherited?
- Is polymorphism always runtime?
- What is method overloading and overriding?
- I have two overloading methods of type int and long and when i call those method with val 1, which will be called?
- What are methods of Object class?
- Why wait method is part/inside of object? do you think it right idea/reason to put it there?
- When to override hashcode and equals method?
- How hashcode and equals method are related to hashset?
- Internal structure of hashset
- How actual objects will be stored inside collection like hashset?
- What is immutable?
- How to make class immutable?
- Difference between using string literal and string constructor
- Benefits of having string pool
- Why to clone while returning collection or object from immutable?
- Difference between hashmap and hashtable
- Difference between hashtable and concurrent hashmap
- How to implement spring security and how it works internally?
- How spring will come to know whether i am allowed to use particular endpoint or my current role
- What are bean scopes in spring?
- Difference between singleton and prototype
- Is prototype scope is same as request scope in spring?
- Difference @Component and @Controller/@Service
- In which scenario you will use Node JS?
- How Node JS is better in some scenarios? features of Node JS
- Which one is better GIT or SVN?
- Which tool are you using for Task management
- Knowledge of build tools like Jenkins
- Find second highest and second lowest from an unsorted array.