eBay Interview Question

Talk about yourself. Difference between string buffer and string builder, difference between string and String buffer. Leet code Coding example.

Interview Answers

Anonymous

Aug 27, 2017

String is immutable, if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder are mutable so they can change their values. Thread-Safety Difference: The difference between StringBuffer and StringBuilder is that StringBuffer is thread-safe

Anonymous

Jan 23, 2021

In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the eBay Software Engineer II experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews