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 ответов