Java senior developer interview questions shared by candidates
How would you scale access to a system like Twitter
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.
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.
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.
Two developers, Ann and Suzy, are waiting for code to compile. Suzy learns that Ann's sister has three children, and asks how old they are. Ann responds, "The product of their ages is 36." Suzy says, "Oh c'mon--I can't figure it out with that!" Ann replies, "Ok, then the sum of their ages is the same as this number right here," and points to a number on the screen. Suzy says, "Nope, still can't do it," and Ann replies, "The oldest is dyslexic." How old are the children? (Order from oldest to youngest)
I didn't see any unexpected questions. Interview is mostly based on the depth of your technical skills, Agile methodology, Spring MVC, Spring Web Flow, Java Core concepts, Hibernate configurations, relationships in hibernate (one-to-may.many-to-many), Spring Injections, Design Patterns (Singleton), WebServices(cxf/Axis) etc.
See Interview Questions for Similar Jobs
- Java Developer
- Software Engineer
- Senior Software Engineer
- Software Developer
- Senior Software Developer
- Software Development Engineer
- Senior Developer
- Web Developer
- Applications Developer
- Project Manager
- Principal Software Engineer
- Senior Software Development Engineer
- Business Analyst
- Java Software Engineer
- Junior Java Developer