HCL Angular + Java Interview Questions for Not specified
Shared question set for Not specified of experience, L1 technical round (Java Full Stack). Topics and wording follow the supplied notes; these are questions, not official company guidance.
- Write a SQL query for a college that has multiple branches, where each branch has multiple semesters such as Semester 2, 4, 6 and 8. For each branch and semester, find the student who is the topper.
- What is the use of RANK() and DENSE_RANK()? What is the difference between them?
- Explain the Strategy design pattern with a Java example.
- What are the commonly used design patterns in Java?
- What is the difference between the Factory and Strategy design patterns?
- When should we use the Factory pattern, and when should we use the Strategy pattern?
- What information is present in the JWT header?
- What algorithms are commonly used in JWT?
- What is the difference between symmetric and asymmetric algorithms in JWT?
- How do you create a fixed-size thread pool in Java?
- What is the use of a fixed-size thread pool?
- What is a database connection pool, and how do you configure it? Write the configuration/code for it.
- Write a Java Stream program to group employees by department and find the highest salary in each department.
- What tokens are typically received after successful authentication from the UI?
- What is the purpose of an access token and a refresh token?
- Why do we use a refresh token?
- What is the difference between an access token and a refresh token?