Cognizant Angular + Java Interview Questions for 3+ years
Shared question set for 3+ years of experience. Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Explain your current project, the modules you have worked on, and how it is deployed.
- What are the main features introduced in Java 8?
- What is the difference between an Interface and an Abstract Class?
- What is a default method in Java?
- What is the Stream API? Where have you used it?
- What is the difference between map() and flatMap()?
- What is exception handling? How do you handle exceptions in your application?
- What is the difference between HashMap and ConcurrentHashMap?
- Explain Spring Boot and why we use it.
- What is Dependency Injection in Spring?
- What is @SpringBootApplication?
- What is @ComponentScan?
- How do you create a REST API in Spring Boot?
- What is the difference between Authentication and Authorization?
- How does JWT authentication work?
- What are HTTP status codes? Explain 200, 400, 401, 403 and 500.
- What is a JOIN? Explain INNER JOIN and LEFT JOIN.
- What is the difference between DELETE, TRUNCATE and DROP?
- What is the difference between UNION and UNION ALL?
- How would you find the 5th highest salary from an Employee table?
- What is a component in Angular?
- What are directives? What types of directives have you used?
- What is data binding? Explain the different types.
- How do you implement routing in Angular?
- How do you pass an ID while navigating from one component to another?
- What is the difference between Template-Driven and Reactive Forms?
- How do you share data between parent and child components?
- What is a service in Angular and why do we use it?
- If I give you an API that returns an array of employees, how would you call the API and display the data in a table?
- Your API works in Postman but doesn't work from Angular. What would you check?