1package test.java.semantics;
12 public Object cogitate()
17 public static void main(String s[])
throws Exception
21 instance_of tony =
new instance_of();
22 Object fred = tony.cogitate();
23 if (fred instanceof List<?>) {
24 throw new Exception(
"FAILURE! fred should not be instance of List<?> ! null is an instance of something!");
26 System.out.println(
"told us null is not an instance of List, which is correct.");
int main(int argc, char *argv[])