Skip to content
Related Articles

Related Articles

Improve Article

Walmart Interview Experience for Java Developer

  • Last Updated : 27 Nov, 2019
Geek Week

Round 1:

Asked us to write working code in JAVA in 90 mins for this question. Didn’t clear this round, but felt that this question was important thereby sharing it.


  • An event would typically consist of {start, end, location, owner, user-list, title}
  • Events can either be like meetings (with a dedicated location and appropriate guest-list) or as well be like holidays, birthdays, reminders etc.
  • An event once created, can be either accepted or rejected by the constituent users – if neither it should be in neutral state

Implement any 2 API’s:

  1. User API to create, update or cancel their events. Create/Update operation should be successful only in case of no conflicts of resources
  2. Given a user, provide an API to fetch list of event/meetings for the given date range.
  3. Given a Meeting ID, provide an API to give details of invitees with their responses i.e.. ACCEPT, DECLINE etc..
  4. API to find available rooms in specific building at particular time-slot


  1. Code quality should be production ready for merge and deployment
  2. Guidelines have the highest weightage than finishing more api’s
  3. Code should be demo able. create the sample data yourself in a file, test case or main driver program itself(no external data store). Don’t spend time parsing the inputs.
  4. Code should be readable, modular(no monoliths), testable, extensible with proper naming conventions
  5. Code should handle edge cases properly and fail gracefully


  • Define a detailed object model for entities required by system
  • Make proper use of inheritance, Abstraction, interfaces, exception handling
  • Have proper commenting in code and should follow best coding practices
  • Use design patterns like Builder, Factory, Visitor etc wherever applicable
  • Justify your coding choices i.e.. why did you choose to define a separate function for a feature or why did you not define a constructor for initialising class
  • Define Enums, Singleton classes wherever applicable
  • Separation of concern is addressed
  • Implement unit test cases for key sections of his/her code
  • Use Java 8/7 features like functional interfaces, Auto Closable resources etc..


Hey geek! It’s time to become a success story instead of reading them. Check out our most renowned DSA Self Paced Course, now at a student-friendly price and become industry ready. And if you are looking for a more complete interview preparation resource, check out Complete Interview Preparation Course that will prepare you for the SDE role of your dreams!

Feeling prepared enough for your interview? Test your skills with our Test Series that will help you prepare for top companies like Amazon, Microsoft, TCS, Wipro, Google and many more!

My Personal Notes arrow_drop_up
Recommended Articles
Page :