Given a method that must ensure that its parameter...
单选题

Given a method that must ensure that its parameter is not null: What, inserted at line 12, is the appropriate way to handle a null value?()

发布日期:2022-07-16

A.assert value == null;

B.assert value != null, 'value is null';

C.if (value == null) { throw new AssertionException('value is null'); }

D.if (value == null) { throw new IllegalArgumentException('value is null'); }

标签: "暂无标签"

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定