Eko
Mar 21, 2023

What’s the difference between as String and toString?

. toString() is a method to represent data of a object but as String is a type cast which tries to convert the object itself to a String .