GE Healthcare java developer interview for 3 yrs experience, Bangalore

1st round:

  1. OOP concepts
  2. https://leetcode.com/problems/house-robber/
  3. Design a parking lot

2nd round:

  1. Sort an array of employee objects based on salary (here salary was an attribute of employee object)
    Soln: expectation was to implement comparator interface and override compare method and then use Collections.sort Eg: https://howtodoinjava.com/sort/sort-arraylist-objects-comparable-comparator/
  2. How do you create your own Exception class
Comments (1)