Pregunta de entrevista de Morgan Stanley

Round 1: Hacker Rank Test consisting of 1 coding question of easy to medium range and mcqs on java concepts(multithreading, inheritance,jdbc),Spring boot etc Round 2: Virtual Interview over Zoom (1hr) Following questions were asked 1) Create an immutable class in java 2) Comparator vs comparable differences and implement sorting over a list of objects using both 3) Hashmap internal working 4) Train tickets were given, have to find the path from source to destination