Given:String[]elements={"for","tea","too"};Stringfirst=(elements.length>0)?elements[0]:null;Whatistheresult?()

A.Compilationfails. B.Anexceptionisthrownatruntime. C.Thevariablefirstissettonull. D.Thevariablefirstissettoelements[0].

时间:2023-08-25 17:00:48

相似题目