📜  java typeof - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:08.515000             🧑  作者: Mango

代码示例1
Object obj = null;
obj = new ArrayList();
System.out.println(obj.getClass());

obj = "dummy";
System.out.println(obj.getClass());

obj = 4;
System.out.println(obj.getClass());