debasmita
debasmita
cmbhatt
cmbhatt
debasmita
cmbhatt
Which is correct since Object is a superclass of String. Following an example with the expected error:Originally posted by Tashi Rautela:
The above code gives "String" as output.....
cmbhatt
null is valid for any object reference.Originally posted by Tashi Rautela:
"null" can go with Number also? I thought compiler is taking it as String only
It's just a flesh wound! Or a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|