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

10.interfaceFoo{}11.classAlphaimplementsFoo{}12.classBetaextendsAlpha{}13.classDeltaextendsBeta{14.publicstaticvoidmain(String[]args){15.Betax=newBeta();16.//insertcodehere17.}18.}Whichcode,insertedatline16,willcauseajava.lang.ClassCastException?()
A.Alphaa=x;
B.Foof=(Delta)x;
C.Foof=(Alpha)x;
D.Betab=(Beta)(Alpha)x;

A.interfaceFoo{}11.classAlphaimplementsFoo{}12.classBetaextendsAlpha{}13.classDeltaextendsBeta{14.publicstaticvoidmain(String[]args){15.Betax=newBeta();16.//insertcodehere17.}18.}Whichcode,insertedatline16,willcauseajava.lang.ClassCastException?()
A.Alphaa=x;
B.Foof=(Delta)x;
C.Foof=(Alpha)x;
D.Betab=(Beta)(Alpha)x;
热门试题

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