Long l1 = null;
Long l2 = Long.getLong("23");
Long l3 = Long.valueOf(23);
System.out.println(l1 instanceof Long); // returns false
System.out.println(l2 instanceof Long); // returns false
System.out.println(l3 instanceof Long); // returns true
我无法理解返回的输出。我期待真正的至少第 2 和第 3 syso 的。有人可以解释 instanceof 是如何工作的吗?