在J2EE中,在自己定义的JavaBean中,有方法getComment(),返回字符串“hello!”,但是没有comment属性,当调用getComment()方法时会()。 

A . 抛出异常 B . 返回字符串“hello!” C . 什么也没有 D . 编译不能通过

时间:2022-10-06 05:23:17 所属题库:java工程师信产部认证考试题库

相似题目