找考题网-背景图
单项选择题

A.StackOverflowErrorB.NullPointerExceptionC.NumberForma……

publicclassClassA{11.publicvoidcount(inti){12.count(++i);13.}14.}And:20.ClassAa=newClassA();21.a.count(3);Whichexceptionorerrorshouldbethrownbythevirtualmachine?()

A.StackOverflowError
B.NullPointerException
C.NumberFormatException
D.IllegalArgumentException
E.ExceptionlnlnitializerError
热门试题

单项选择题YouareimplementinganASP.NETpage.ThepageincludesamethodnamedGetCustomerOrderDataSetthatreturnsaDataSet.TheDataSetincludesaDataTablenamedCustomerDetailsTableandaDataTablenamedOrderDetailsTable.YouneedtodisplaythedatainOrderDetailsTableinaDetailsViewcontrolnameddtlView.Whichcodesegmentshouldyouuse?()A.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataMember= OrderDetailsTable ;dtlView.DataBind();B.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataSourceID= OrderDetailsTable ;dtlView.DataBind();C.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataKeyNames=newstring[]{ OrderDetailsTable };dtlView.DataBind();D.DataSetdataSet=GetCustomerOrderDataSet();dtlView.DataSource=newDataTable( dataSet , OrderDetailsTable );dtlView.DataBind();

A.NETpage.ThepageincludesamethodnamedGetCustomerOrderDataSetthatreturnsaDataSet.TheDataSetincludesaDataTablenamedCustomerDetailsTableandaDataTablenamedOrderDetailsTable.YouneedtodisplaythedatainOrderDetailsTableinaDetailsViewcontrolnameddtlView.Whichcodesegmentshouldyouuse?()
A.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataMember="OrderDetailsTable";dtlView.DataBind();
B.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataSourceID="OrderDetailsTable";dtlView.DataBind();
C.dtlView.DataSource=GetCustomerOrderDataSet();dtlView.DataKeyNames=newstring[]{"OrderDetailsTable"};dtlView.DataBind();
D.DataSetdataSet=GetCustomerOrderDataSet();dtlView.DataSource=newDataTable("dataSet","OrderDetailsTable");dtlView.DataBind();