Senior java developer Interview Questions | Glassdoor

Find jobs for senior java developer

Senior java developer Interview Questions

"Senior developers have years of experience in Java and have the knowledge and communication skills to mentor other developers. Companies prioritize strong technical skills and questions will focus on problem solving and critical thinking. A bachelor's degree in computer science or a related field, along with years of industry experience are standard."

Top Interview Questions

Sort: RelevancePopular Date

How would you scale access to a system like Twitter

3 Answers

There's probably no real correct answer, though the solutions go from common to esoteric in a pretty normal progression: caching, shared-cache like memcache, optimize usage, prefetch, then get creative. This is more about testing reasoning and how far you'll go to solve a problem.

I was thinking geographically distributed servers.

Cf

Q: Why multiple inheritances are not supported in Java?

1 Answer

If you were responsible for development and launch of a billing system, how would you handle a critical situation?

1 Answer

public class Person { Person father; Person mother; Gender gender; Integer age; List children; int level = 0; public enum Gender { Male, Female; } } For the above class, you basically have to implement 2 methods. public List getOldestSisters() public List getGreatestAncestors()

5 Answers

A rustic village contains one million married couples and no children. Each couple has exactly one child per year. Each couple wants a girl, but also wants to minimize the number of children they have, so they will continue to have children until they have their first girl. Assume that children are equally likely to be born male or female. Let p(t) be the percentage of children that are female at the end of year t. What is p(t)? "Can't tell" is a potential answer if you don't have sufficient information.

6 Answers

Write an algorith to print a series of roman numerals.

4 Answers

Given an array of numbers, create another array of numbers. Calculate each new array number by multiplying all input array numbers, except for the current number position in the new array.

3 Answers

After a night of wild revelry, a group of local intoxicated hoodlums stumble into a children's playground. One of these hoodlums, Phil, climbs to the middle of a spin-around carousel and his friends push the carousel so it rotates once every five seconds. Phil, who is trying not to get sick, holds a flashlight motionless in his hand. There is a straight path running by the playground that, at its closest point, is 30 meters from the middle of the carousel. Unknown to Phil, there are two cops facing him on the path, shocked at the spectacle. One of them is standing on the path at the point closest to the carousel, while the other is standing 60 meters down the path. At approximately what speed (in meters per second) does the spot illuminated by the flashlight traverse each of the cops' bodies? State speed at the closest cop first.

2 Answers

Can integer factorization be done in polynomial time on a classical computer?

2 Answers

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?

2 Answers
110 of 448 Interview Questions