The difference between “instanceof List” and 'o instanceof List<?>"

后端 未结 2 1703
太阳男子
太阳男子 2021-01-21 03:20

I don\'t see any difference in the following:

    Object o = new LinkedList();

    System.out.println(o instanceof List); 
    System.out.println(o          


        
2条回答
提交回复
热议问题