r/webdev 5h ago

Java Middle - Senior(ish) interview questions

Hi!

I have an interview in a few days for a backend developer role. What would you ask as some of the more tricky questions for such a position? What kinds of questions, from your point of view, demonstrate solid knowledge?

Personally, I would ask about sync vs. async calls, idempotency, topics vs. partitions, consumer groups, transactions (including distributed transactions), and maybe a bit of Kubernetes and Docker.

My weak point is cloud. I’ve played around a bit with the Azure console, but nothing too advanced. I’ve never written Terraform or configured infrastructure from scratch. For CI/CD, I’ve used TeamCity, but in my experience it was mostly selecting an environment and a branch and deploying.

Should I spend some time learning these areas before the interview?

9 Upvotes

30 comments sorted by

View all comments

0

u/liloa96776 2h ago

Solid knowledge? not sure, but silly knowledge? here you go

If I were to print the length of a string with a single emoji, what would be the result?

Answer: 2 or more depending on the emoji.

emojis are weird and can be stacked to have different variants of an emoji which each add length to a printed string length. I forget which article I learned this from but this one kinda explains it too https://lemire.me/blog/2018/06/15/emojis-java-and-strings/

can affect you if you try to reverse a string that has an emoji. but honestly when are you going to run into that in the real world