Pergunta de entrevista da empresa Medallia

He was trying to get some Iterable<> syntax right for Vargs. A simple google search would have given me the exact "Iterable" syntax solution. Not sure what they were trying to test.

Respostas da entrevista

Sigiloso

14 de fev. de 2017

You need to recognize Vargs syntax (I did) and then use Iterable.hasNext() syntax.(I used for instead). You need to say by using Vargs you can minimize Method overloading since you have to declare only one method with Vargs parameter and not declare a new method for every increase in arguments. Very very immature question in my opinion. It was testing nothing. No logic nothing. I can always google the syntax.

Sigiloso

26 de jan. de 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 Medallia Software Engineer experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews