Ctrl K
Java · Senior · System design

Your team is writing an internal Java library that twenty other teams will use. How would you design its API so it can evolve without breaking clients?

~10 min by voice

How to approach it

This checks whether you understand that every public element of a library becomes a permanent contract, and whether you can build the ability to evolve into the API from day one: hide the implementation, control extension, watch binary compatibility and retire old things carefully.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsКак вы выстроите защиту API, через которое мобильное приложение получает данные о счетах клиента, — на всём пути от приложения до базы? SeniorHow would you implement pagination in a feed API with millions of records where new ones are constantly being added? What options do you know, and how do they differ? Mid-levelDesign a rate limiter for a public API: for example, no more than 100 requests per minute per API key. The service runs on several instances. Mid-levelGive me an example from your own work where code violated one of the SOLID principles, and tell me how you fixed it. Mid-levelWhat's the difference between an abstract class and an interface, and when do you use each? Junior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~10 min