【单选题】【消耗次数:1】
下面哪个函数是public void method(){ }的重载函数?( )
public void method( int m){ }
public int method(){ }
public void method2(){ }
public int method(int m,float f ){ }
参考答案:
复制
纠错
相关题目
【单选题】 运行下面程序时,会产生什么异常?( ) public class X7_1_4 { public static void main(String[] args) { int x = 0; int y = 5/x; int[] z = { 1,2,3,4 } ; int p = z[4]; } }
①  ArithmeticException
②  NumberFormatException
③  ArrayIndexOutOfBoundsException
④  IOException
【单选题】 运行下面程序时,会产生什么异常?( ) public class X7_1_5 { public static void main(String[] args) { int[] z = { 1,2,3,4 } ; int p = z[4]; int x = 0; int y = 5/x; } }
①  ArithmeticException
②  NumberFormatException
③  ArrayIndexOutOfBoundsException
④  IOException
【单选题】 给出下面代码段, 哪行将引起一个编译时错误?( ) 1) public class Test { 2) int n = 0; 3) int m = 0; 4) public Test(int a) { m=a; } 5) public static void main(String arg[]) { 6) Test t1,t2; 7) int j,k; 8) j=3; k=5; 9) t1=new Test(); 10) t2=new Test(k); 11) } 12) }
①  行1
②  行4
③  行6
④  行9
【单选题】 以下程序的运行结果是:( ) public class Increment{ public static void main(String args[]){ int c; c = 2; System.out.println(@@; System.out.println(c++); System.out.println(@@; } }
①  2 2 2
②  2 3 3
③  2 2 3
④  3 4 4
【单选题】 已知有下面类的说明: public class X5_1_1 extends x{ private float f =10.6f; int i=16; static int si=10; public static void main(String[] args) { X5_1_1 x=new } } X5_1_1(); 在 main()方法中,下面哪条语句的用法是正确的?( )
①  x.f
②  this.si
③  X5_1_1.i
④  X5_1_1.f
【单选题】 编译运行以下程序后,关于输出结果的说明正确的是 ( ) public class Conditional{ public static void main(String args[ ]){ int x=4; System.out.println(“value is “+ ((x>4) ? 9.9:9)); } }
①  输出结果为:value is 99.9
②  输出结果为:value is 9
③  输出结果为:value is 9.0
④  编译错误
【单选题】 编译下面源程序会得到哪些文件( )? class A1{ } class A2{ } public class B{ public static void main(String[] args) { } }
①  只有B.class 文件
②  只有 A1.class 和 A2.class 文件
③  编译不成功
④  A1.class、A2.class 和B.class 文件
【单选题】 下列程序的运行结果是( ) 。 public class X5_1_2 extends x{ int ab() { static int aa=10; aa++; System.out.println(aa); } public static void main(String[] args) { X5_1_2 x=new X5_1_2(); x.ab(); } }
①  10
②  11
③  编译错误
④  运行成功,但不输出
【单选题】 Which of the following is not grammar presentation method?
①  Deductive method
②  Inductive method
③  Guided discovery method
④  Communicative teaching method.
【单选题】 int Func(int,int);不可与下列哪个函数构成重载( )
①  int Func(int,int,int);
②  double Func(int,int);
③  double Func(double,double);
④  double Func(int,double);
随机题目
【判断题】 财务会计报告是指企业对外提供的反映企业某一特定日期的财务状况和某一会计期间的经营成果、现金流量等会计信息的文件。
①  正确
②  错误
【判断题】 根据我国《证券法》的规定,国家对证券公司实行分类管理,分为综合类证券公司和经纪类证券公司。
①  正确
②  错误
【判断题】 信托资产不属于信托投资公司的自有财产,也不属于信托投资公司对收益人的负债。
①  正确
②  错误
【判断题】 金融企业费用期末结转时,应将其借方余额全部转入“本年利润”科目的借方。
①  正确
②  错误
【多选题】 下列说法正确的是?
①  资本公积是所有者共有的、非收益转化所形成的资本
②  盈余公积可用于弥补亏损、转增资本和分配股利
③  一般风险准备可用于弥补亏损、分红和转增资本
④  未分配利润是净利润中尚未确定用途、归所有者所有的资金
【多选题】 下列哪些项属于金融企业的费用?
①  利息支出
②  税金及附加
③  其他业务成本
④  营业外支出
【单选题】 自营证券买入核算中,对于买入时划分为交易性金融资产的,实际收到现金股利时,会计分录的写法为?
①  借记应收股利,贷记银行存款
②  借记银行存款,贷记应收股利
③  借记应收股利,贷记投资收益
④  借记投资收益,贷记应收股利
【单选题】 当金融企业实际支付已预提的应付利息时,会计分录应为?
①  借记利息支出,贷记应付利息
②  借记应付利息,贷记利息支出
③  借记应付利息,贷记吸收存款
④  借记吸收存款,贷记应付利息
【单选题】 当金融企业接受现金资产投资时,会计分录为?
①  借记存放中央银行款项,贷记实收资本
②  借记实收资本,贷记存放中央银行款项
③  借记固定资产,贷记实收资本
④  借记实收资本,贷记固定资产
【单选题】 下列说法中错误的是?
①  公司自营买入的证券,应按取得时的公允价值计价
②  公司自营卖出的证券,应在清算时按成交价扣除相关税费后的净额确认收入
③  证券公司的证券承销业务主要有全额承购包销、余额承购包销和代销三种
④  证券公司代发行单位发售证券时,手续费应于发行期开始前进行确认