Pregunta de entrevista de Tata Consultancy Services

String s = "Hey"; s = s.concat(" Guys") sop(s)

Respuestas de entrevistas

Anónimo

7 oct 2021

It should be Hey as Strings are immutable

1

Anónimo

23 nov 2021

HeyGuys

Anónimo

31 may 2019

I know its 'Hey guys' but they were in an assumption that it is 'Hey' dont know how.

Anónimo

10 jul 2019

I think the interviewer were in assumption that Strings in java are immutable. that's why they said it's only hey. but hey guys is the right answer

2