单项选择题
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”);