【单选题】【消耗次数:1】
已知:print( )函数是一个类的常成员函数,它无返回值,下列表示中,( )是正确的。
void print( ) ;
final void print( );
void final print( );
void print(final);
参考答案:
复制
纠错
相关题目
【单选题】 已知:print( )函数是一个类的常成员函数,它无返回值,下列表示中,( )是正确的。
①  void print( ) const;
②  const void print( );
③  void const print( );
④  void print(const);
【单选题】 已知:print( )函数是一个类的常成员函数,它无返回值,下列表示中,( )是正确的。
①  void print( ) const;
②  const void print( );
③  void const print( );
④  void print(const);
【单选题】 下列函数不能和函数void print(char)构成重载的是( )
①  int print(int);
②  void print(char,char);
③  int print(char);
④  void print(int,int);
【单选题】 下列程序段If(2*2=5)(2*2=4)Then:Print"Trueisgreaterthanfalse":Else:Print"Falseisgreaterthantrue"的运行结果是()。
①  Trueisgreaterthanfalse
②  Falseisgreaterthantrue
③  False
④  True
【单选题】 定义一个void型函数意味着调用该函数时,函数(  )。
①  通过return返回一个用户所希望的函数值
②  返回一个系统默认值
③  没有返回值
④  返回一个不确定的值
【单选题】 若Sample类中的一个成员函数说明如下:void set(Sample a),则Sample a的含义是()
①  指向类Sample的名为a的指针
②  a是类Sample的对象引用,用来作函数Set()的形参
③  将a的地址赋给变量Set
④  变量Sample与a按位与的结果作为函数Set的参数
【单选题】 getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( ) public void getCustomerInfo() { try { // do something that may cause an Exception } catch (java.io.FileNotFoundException ex){ System.out.print(FileNotFoundException!); } catch (java.io.IOException ex){ System.out.print(IOException!); } catch (java.lang.Exception ex){ System.out.print(Exception!); } }
①  IOException!
②  IOException!Exception!
③  FileNotFoundException!IOException!
④  FileNotFoundException!IOException!Exception!
【单选题】 ()对象能使用print方法。
①  文本框
②  命令按钮
③  图片框
④  标签
【单选题】 下面哪个函数是public void method(){ }的重载函数?( )
①  public void method( int m){ }
②  public int method(){ }
③  public void method2(){ }
④  public int method(int m,float f ){ }
【单选题】 若Sample类中的一个成员函数说明如下:void set(Sample& a),则Sample& a的含义是()
①  指向类Sample的名为a的指针
②  a是类Sample的对象引用,用来作函数Set()的形参
③  将a的地址赋给变量Set
④  变量Sample与a按位与的结果作为函数Set的参数
随机题目
【简答题】 1851年,洪秀全领导金田起义,建号[填空1]。
【简答题】 [填空1]年,新文化运动开始。[填空2]
【简答题】 为什么说十一届三中全会是新中国成立以来伟大的历史转折?
【单选题】 下列不属于眉首区的一项是:
①  发文机关标识
②  发文字号
③  保密等级
④  抄送机关
【单选题】 下列公文属于上行文的是:
①  通报
②  通知
③  批复
④  报告
【简答题】 报告是十五种[填空1]的一种。
【简答题】 通报是十五种[填空1]的一种。
【简答题】 IP地址主要分为A、B、C三类,每一个IP地址是由32位二进制数组成,其中B类地址的第一个字节的范围是128 ~[填空1][填空2]。
【简答题】 关系模型的基本数据结构是[填空1][填空2],其数据库存储时的基本组织方式是文件。
【简答题】 在Excel中,数据筛选有自动筛选和[填空1][填空2]两种方式。