Which type of value is returned by replace() function | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Which type of value is returned by replace() function

22nd Dec 2018, 6:18 PM
bhavya bhatia
bhavya bhatia - avatar
2 Respostas
+ 2
answer is String you can verify it using instanceof operator e.g)String s = "hello world!!'; System.out.println(s.replace('l','#') instanceof String);//true
22nd Dec 2018, 7:45 PM
Rishi Anand
Rishi Anand - avatar
0
thank you
22nd Dec 2018, 11:55 PM
bhavya bhatia
bhavya bhatia - avatar