[主观题]

说出下面几个函数的区别:

private void test(string str){…}

private void test(ref string str){…}

private void test(out string str){…}

如果一个页面与数据

参考答案与解析:

相关试题

写出下面程序的输出()。public class Test {public st

[单选题]写出下面程序的输出( )。 public class Test { public static void main (String args[ ]) { iht x=1, y=2; System. out. println ("result="+x+y); System. out. println ("result="+(x+y));A.result=12 result=12B.result=3 result=3C.result=3 result=12D.result=12 result

  • 查看答案
  • 分析以下代码。public static void test(string Co

    [主观题]分析以下代码。public static void test(string ConnectString){System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection();conn.ConnectionString = ConnectString;try{conn.Open();…….}catch(Exception Ex){MessageBox.Show(Ex.ToString());}finall

  • 查看答案
  • 分析以下代码。 public static void test(string C

    [主观题]分析以下代码。public static void test(string ConnectString){System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection();conn.ConnectionString = ConnectString;try{conn.Open();…….}catch(Exception Ex){MessageBox.Show(Ex.ToString());}finall

  • 查看答案
  • 下面函数的作用是以双倍行距输出文件: void test(ifstream&ou

    [单选题]下面函数的作用是以双倍行距输出文件:void test(ifstream&outf,ofstream&outC) {char c;while(______){______;if(c=='/n')outc.put(C) ;}}下划线处缺失的代码是( )。A.outf.put(C) 与outc.get(C)B.outf.put(C) 与outc.get(C)C.outf.get(C) 与outc.put?D.outf.get(C) 与outc.put?

  • 查看答案
  • void test(void)

    [主观题]void test(void)

  • 查看答案
  • 阅读下面程序public void test() { try{ sayHello

    [单选题]阅读下面程序 public void test() { try{ sayHello(); System.out.println("hello"); } catch(ArrayIndexOutOfBoundException e) { System.out.println("ArrayIndexOutOfBoundException"); } catch(Exception e) { System.out.println("Exception"); } finally { System

  • 查看答案
  • 下列程序的运行结果是 public class test{ private St

    [单选题]下列程序的运行结果是public class test{private String[] data={“10”,“10.5”};public void fun(){double s=0;for(int i=0;i<3;i++){try{s=s+Integer .parseInt(data[i]);}catch(Exception e){System.out.print(“errorl:”+data[i]);}}}public static void main(String[]args){t

  • 查看答案
  • 下列程序的运行结果是 public class test{ private St

    [单选题]下列程序的运行结果是public class test{private String[] data={“10”,“10.5”};public void fun(){double s=0;for(int i=0;i<3;i++){try{s=s+Integer .parseInt(data[i]);}catch(Exception e){System.out.print(“errorl:”+data[i]);}}}public static void main(String[]args){t

  • 查看答案
  • 考虑函数原型void test(int a,int b=7,char z=‘*’

    [单选题]考虑函数原型void test(int a,int b=7,char z=‘*’),下面的函数调用中,属于不合法调用的是( )。A.test(5);B.test(5,8);C.test(6,’#’);D.test(0,0,’x’);

  • 查看答案
  • 阅读下面代码public class Test { String s="One

    [单选题]阅读下面代码 public class Test { String s="One World One Dream"; public static void main(String[] args) { System.out.println(s); } } 其运行的结果是A.argsB.World One DreamC.sD.编译时出错

  • 查看答案
  • 说出下面几个函数的区别: private void test(string st