Learning Partner

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.

  1. 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.
  2. What is the use of RANK() and DENSE_RANK()? What is the difference between them?
  3. Explain the Strategy design pattern with a Java example.
  4. What are the commonly used design patterns in Java?
  5. What is the difference between the Factory and Strategy design patterns?
  6. When should we use the Factory pattern, and when should we use the Strategy pattern?
  7. What information is present in the JWT header?
  8. What algorithms are commonly used in JWT?
  9. What is the difference between symmetric and asymmetric algorithms in JWT?
  10. How do you create a fixed-size thread pool in Java?
  11. What is the use of a fixed-size thread pool?
  12. What is a database connection pool, and how do you configure it? Write the configuration/code for it.
  13. Write a Java Stream program to group employees by department and find the highest salary in each department.
  14. What tokens are typically received after successful authentication from the UI?
  15. What is the purpose of an access token and a refresh token?
  16. Why do we use a refresh token?
  17. What is the difference between an access token and a refresh token?

Browse Angular + Java question sets