casting for object | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

casting for object

Hi in this code: String s = "Hello"; Object o = (Object) s; System.out.println(o instanceof String); result is true why is not an Object Stance( result=false)?

29th Aug 2021, 12:06 PM
Hadi
Hadi - avatar
0 Answers