Expedia Interview Experience | Set 7 (4.5 Years Experienced for SDE1)
There were 6 rounds in total after which I was shortlisted for the position. General questions like ‘why Expedia?, describe yourself & your experience? reason for switch? Questions for me?’ were asked by almost everyone in all the rounds.
Following were the technical questions asked:
Round-1 (1 hr)
- Current project & responsibilities? Challenges?
- Difference between wait() & sleep()
- Describe certain OOPS principles
- Best Code Review practices
- TDD? steps?
- Why is String class immutable?
- difference between array & arrayList
- difference bw iterator & listIterator
- Types of exception? what happens to the exception object once the exception is caught & handled? when is it garbage collected?
- what is AWS?
- Design a vending machine – test cases & design pattern.
Round – 2 (1 hr)
- why do you want to switch?
- Decorator pattern (design & code)
- how will you implement a batch-job without a framework? how are they scheduled? Timer object?
- diff bw EJB2 & 3
- diff bw SOAP & REST web services
- write code to Implement a singleton in multi-threaded env. explain.
Round -3 (1 hr)
- OOPS best practices?
- JVM memory management, heap, stack & garbage collection.
- TDD? steps? types of test cases?
- Test cases for the design of vending machine?
- why do I hire you?
Round -4 (40 mins)
- write a code for printing numbers from 0-10 & change the sysout to print 10-0
- write a code for finding if two rectangles are intersecting, given set of their two opposite vertices
- write some test cases for a method that finds area of a triangle
- what is singleton? application of Singleton in your project
Round -5 (1hr 45mins)
- Current role & responsibilities? Technologies used? front-end or backend?
- Singleton? write the code, ensure that it works in multi-threaded env n safe from reflection as well
- how will you make a class final?
- what is immutability? give an example of immutable class in java? why is String immutable?
- What is a web-service? SOAP vs REST? benefits of REST?
- Diff bw ’String str = new String(“abc”)’ & ’String str = “abc”’
- in what ways can the state of a user be saved? pros & cons of all methods. what are cookies? how are they implemented?
- where will u close/release the resources? what if u get an exception in finally block?
- Describe and implement any design pattern apart from singleton
- how will u identify a deadlock? implement ways to prevent & resolve.
- write SQL queries (using foreign keys, having, group by clauses, nested queries)
- have u done code reviews? what do u look for in the code while doing so?
- challenges faced while using Hibernate? performance?
- how will you implement advanced search using Hibernate?use of Criteria & Pagination APIs?
Round -6 (30 mins)
- what is a var in javascript? types & scope?
- what is angular js?
- difference between ‘var x=3;’ & ‘x=3;’?
- what is AB testing?
- given: a baseURL & a map containing queryStrings – write a code to return a complete URL string. how will u handle special characters in it.
- how will you make sure that the code remains maintainable.
- what is an enum? diff between enum & constant? uses of enum?
- TDD? which mocking framework have u used?
All Practice Problems for Expedia !