class Random {
}
object Random extends App{
val randomObj = new Random
val strObj = new String("Akash")
println("Output :- "+randomObj +" - String := "+ strObj)
}
How do i Print the reference of String like it print with class
class Random {
}
object Random extends App{
val randomObj = new Random
val strObj = new String("Akash")
println("Output :- "+randomObj +" - String := "+ strObj)
}
How do i Print the reference of String like it print with class