单项选择题

publicvoidsomeMethod(Objectvalue){12.//checkfornullvalue....20.System.out.println(value.getClass());21.}What,insertedatline12,istheappropriatewaytohandleanullvalue?()

A.assertvalue==null;
B.assertvalue!null,“valueisnull”;
C.if(value==null){thrownewAssertionException(”valueisnull”);
D.if(value==null){thrownewIllegalArgumentException(”valueisnull”);
题目列表

你可能感兴趣的试题

微信扫码免费搜题