Factory design pattern
Java Consultant Interview Questions
30,843 java consultant interview questions shared by candidates
Where would you apply the proxy design pattern?
ecrire la premiere ligne d'un fichier xml
is it possible to have a static class ?
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.
About myself and then technical questions
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 avoid deadlocks?
1.Why do you want to join Tripod Technologies? 2.Hr was very friendly,he asked questions mostly related to your personal stuff. 3.overall the interview experience was good.
Given a system, a number N, represent item #, and several numbers that represent the factor that it will process the item # if the item can be a multiple of it. Found that how many items cannot be processed? Ex: Given [2, 5] and N = 10. 2, 4, 6, 8, 10, 5 can be process the remaining number is 1 3 7 9, so return 4.
Viewing 211 - 220 interview questions