Cars24 Interview Experience | Round - 1 | Java | YOE - 1.4 | SDE - I / SDE - II
Anonymous User
2979

I recently gave an interview at cars24 for SDE - 1 role. My experience of round 1

The interview asked to introduce myself and thenn asked how many years of experience I had, I told him 1.4 which he heared as 4, I then clalified again it as 1.4, to which he was like surprised.

Nevermind, The interview started..

Q1. Why do we use spring boot?

MyAnalysis - He wanted to know the difference btwn spring boot & spring.
Though I could not answer this question to the best I could, I just told him Spring boot has predefined code and features such as we do not need to doa server setup for the same, so bassically it makes it easier to handle our code.

Q2. What are collections in Java and mention some with their uses?

MyAnalysis - I defined what collections are and then explained some data structures of collections i.e. Hashmap, ArayList, set etc..

Q3. What is a REST API ? Create a CRUD REST Api for
User {
Id
Name,
Age}

MyAnalysis - I asked him whether I can do it in any language or java ? to which he told me to use any node or java, I used node and implemented a post API for create using some validations and saving the user to the db and giving proper json respnse to the client.

No cross questions asked

Q4. What is LRU and implement a LRU.

MyAnalysis - When I was giving the interview, the only thing I remembered was LRU stands for Least Recently Used. I gave the implementation using a map & then using a priority queue which was partially correct

Cross question - what is priority Queue ?

Q5. How does equal and hashcode method works and what is its use ?

Class Student {
String name;
String age;

Int hashCode() {
Return 10;
}

Boolean equals(Student student) {
this.name.equals(student.name);
}

}

HashMap<Student, String> hm= new HashMap();

Student s1 = new Student(“Daljeet”, 21);
Student s2 = new Student(“Abhi”, 30);

hm.put(s1, “Gurgaon”);
hm.put(s2, “Delhi”);

print:-> key - {name:”Daljeet”, age: “21”} value - Gurgaon
key - {name:”Abhi”, age: “30”} value - Delhi

Hashcode and equals method and above code output?

Cross Question - Method overloading and overriding - I had forgot the difference in nervousness.

My Analysis: I messed up in this question

Finally, the interview went for around 44 mins, then I asked him what are the products a new joinee would be working on and if he could give some feedbacks and insights on my intrview.

Verdict - Still Pending

Please Upvote if this post helps you in any way.

Comments (8)