Pergunta de entrevista da empresa Tata Consultancy Services

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

Respostas da entrevista

Sigiloso

7 de out. de 2021

It should be Hey as Strings are immutable

1

Sigiloso

23 de nov. de 2021

HeyGuys

Sigiloso

31 de mai. de 2019

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

Sigiloso

10 de jul. de 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