Java instanceof 操作符实例2 Java instanceof 操作符 Java while循环 Java instanceof 操作符实例2 class Vehicle {} public class Car extends Vehicle { public static void main(String args[]) { Vehicle a = new Car(); boolean result = a instanceof Car; System.out.println( result ); } } Java instanceof 操作符 Java while循环