Back to Browse

Arrise - Round 1 | Multi-Threading | Java, Microservices, Spring Boot, Design Pattern, Kafka, JPA

1.0K views
Premiered Feb 26, 2025
56:24

Join our telegram group: https://t.me/+Phv_pNJxNMU2MzY1 Watch more videos like this: https://youtube.com/playlist?list=PLNZnwhOGTN-xHhpk8mTfJDIPY8NFH1PED&si=2_0qmQiG_-xk0yb4 🚀 Java Interview Questions - First Round Technical Round with Arrise | Real-Time Interview Questions Here's a timeline of the questions asked in the interview: Java Collections and HashMap --------------------------------------------------------------- What data structures have you used? (0:31) How do HashMap, LinkedHashMap, and TreeMap work internally? (1:01) Why is the equals method used in any object? (3:55) Which object's hashCode and equals methods would you implement when storing Employee and Address in a map? (6:08) How does LinkedHashMap work? (6:37) What is the benefit of LinkedHashMap? Why does it exist when HashMap is there? (8:11) What is TreeMap used for? (8:45) Abstract Classes and Interfaces --------------------------------------------------------------- Why are abstract classes and interfaces useful? (9:22) How would you pick up some methods in an abstract class? (11:17) What is the difference between an abstract class and an interface in terms of usage? (11:51) SOLID Design Principles ---------------------------------------------------------------- Have you heard about SOLID design principles? What do they say and what are their benefits? (13:20) Can you explain the Liskov Substitution Principle with a practical example? (16:19) Java Streams and Functional Interfaces ---------------------------------------------------------------- Can you code a solution using Java Streams to filter, multiply, and collect numbers from a list? (19:15) What are functional interfaces? (20:59) What is the benefit of functional interfaces? (21:14) Multi-threading and Concurrency ------------------------------------------------------------------- Would you use HashMap in a multi-threading environment? (22:06) What benefits do ConcurrentHashMap provide? (22:23) What are the corresponding alternatives for LinkedHashMap or TreeMap in a multi-threading environment? (22:57) Why can Collections.synchronizedMap() be bad? (23:31) How does Collections.synchronizedMap() internally make a HashMap thread-safe? (24:04) What extra thing is added to HashMap's get method to make it thread-safe when synchronized? (25:45) How does synchronized work? (26:53) Custom HashMap Implementation (Coding Question) ------------------------------------------------------------------------------------ Can you create a MyHashMap class with put and get methods that store and retrieve key-value pairs? (28:05) Would you like to explain what you have thought through and how you have implemented it? (44:06) Where do you keep the hash code in your MyHashMap implementation? (49:31) What should we write for generics in the get method? (50:20) How would you make the put and get methods in your MyHashMap thread-safe? (51:01) What is the drawback of using synchronized on the full method? (51:27) What are the alternatives to synchronized to improve concurrency? (52:03) Candidate's Questions for Interviewer ---------------------------------------------------------------- Do you have any questions for me? (53:14) 🔔 Don’t forget to like, comment, and subscribe for more Java interview tips, coding tutorials, and career advice! Hashtags: #JavaInterview #JavaInterviewQuestions #TechnicalRound #Java #JavaProgramming #JavaDeveloper #ArriseInterview #CodingInterview #TechInterviewPreparation #JavaInterviewTips #JobInterview #ProgrammingInterview #JavaCoding #FirstRoundInterview #InterviewPrep #LearnJava #SoftwareDevelopment

Download

0 formats

No download links available.

Arrise - Round 1 | Multi-Threading | Java, Microservices, Spring Boot, Design Pattern, Kafka, JPA | NatokHD