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”);
查看答案
在为商品命名时,要注意以下基本原则:()
A. 商品的名称要简单、易记,激发兴趣
B. 商品的名称要与商品本身的特性或基本效用相符合
C. 商品名称要有较强的传播力
D. 商品名称要有较浓的亲合力,激发消费者的联想
E. 避免禁忌
理化环境主要是指由人为因素造成的消费者生存空间的优劣状况,包括()。
A. 空气的洁净程度
B. 水的洁净程度
C. 噪音的强弱程度
D. 土壤的洁净程度
staticvoidtest()throwsRuntimeException{try{System.out.print(”test);thrownewRuntimeException();}catch(Exceptionex){System.out.print(”exception);}}publicstaticvoidmain(String[]args){try{test();}catch(RuntimeExceptionex){System.out.print(”runtime);}System.out.print(”end);}Whatistheresult?()
A. testend
B. Compilationfails.
C. testruntimeend
D. testexceptionend
E. AThrowableisthrownbymainatruntime.
商品名称的心理功能分为哪四项()
A. 认知商品
B. 便于记忆
C. 诱发情感
D. 启发联想