题海让大学四年没有难题
白天模式登陆

题目详情

单选题 以下程序的运行结果为( ). class Testnull03 { int num; public static void main(String[] args) { Testnull03 x=null; if(x==null) System.out.println("No existing "); else System.out.println(x.num); } }

A. 0

B. null

C. No existing

D. 编译出错

Java面向对象编程技术课程封面

学科:Java面向对象编程技术

时间:2024-10-09 12:32:32

Copyright © 2022 津ICP备2021001502号