Java Lead Interview Questions

6,748 java lead 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?
avatar

Senior Java Developer

Interviewed at Publicis Sapient

3.4
Feb 1, 2018

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?

asked core java questions. If a method is overloaded in a class in the following way public void fun(Object o){ } public void fun(ArrayList a){ } and is invoked in the following manner obj.fun(null) which method will be invoked.
avatar

Service Line SI Java

Interviewed at Deloitte

3.8
Sep 27, 2015

asked core java questions. If a method is overloaded in a class in the following way public void fun(Object o){ } public void fun(ArrayList a){ } and is invoked in the following manner obj.fun(null) which method will be invoked.

Viewing 81 - 90 interview questions

Glassdoor has 6,748 interview questions and reports from Java lead interviews. Prepare for your interview. Get hired. Love your job.