Write an API for a phonebook service where the answer time (search name by the phone number) does not depend on the size of the phonebook.
Sr Developer Interview Questions
30,009 sr developer interview questions shared by candidates
First Round - Working of Hashmap, ArrayList Linked List, Java Basic questions Second Round - Coding Exercise - implement SecurityDataServices - Objective 1 1) SecurityServiceImpl - methods a)addSecurity(Security s) b)recordTick(long secID, Tick t), c)getPrice(Security s) d) getHistoricalPrice(Security S, TimeStamp asOfNow) 2)SecurityImpl - methods 1) getSecId() 2)getListTicks() 3)getCurrentPrice() 4)recordTick() 3) Tick Impl - methods 1) getPrice(), 2) getTimeStamp() Implement all these classes in 1.5 hr, Use multithreading, I used ConcurrentHashMap and CopyonwriteArraylist use atomic operations like putifAbsent() CodeReview questions - explain the flow of written code, explain java locks, write it using lambda expression, rewrite the code using locks 3rd round - behavioural questions - why do you want to join Sapient? extra activities apart from work? any technology that you follow?
How to make a global error class for Retrofit errors?
Onsite - 1. You have a computer with seven core cpu, you have a file and you have to read each line of the file, check if it has the word UPS in it, if so , then write it to a file, if there is no word as UPS in it, write that line to a different file. 2. An amount will be given as input. The amount will have some cents in change. So, for example $29.90. For the change, you have to start using the highest denomination and go to the lowest until the change value is completely met.
Pick one of your application that you have worked on in your current job and describe the technical details from start to finish, to be specific, include classes, fields, methods, SOA, SPs, connections etc.
Find kth min element in unsorted integer array.
Directly code challenge as HOME thinks they are above candidates and don't want to waste their time by talking to candidate first.
Coding problem
What is faster for reading in Java ArrayList or HashMap and why?
The most difficult part of this interview was creating the application up front to be presented and discussed during the interview process.
Viewing 121 - 130 interview questions