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?
Java Senior Interview Questions
6,008 java senior interview questions shared by candidates
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.
What is faster for reading in Java ArrayList or HashMap and why?
Online test was multiple choice sometimes it was easy and sometimes it was getting hard. It was average. Assignment was simple problem to assess your ability to implement API . They did not mention any technology or library name. It was free to add and use anything You want and any decision about architecture and implementation as They have mentioned. So I used my experience to implement it using Spring, JPA and I even exposed it as REST API.
How hashmap works internally, how to find hash collission is occured.
About the project structure
what was oops inhertance and overloading
Which would you prefer: composition or inheritance?
Just asked what i have worked on.
print a pattern based on the input i.e n=4 then output is like 1 2 3 4 5 6 7 8 9 10
Viewing 31 - 40 interview questions