99青草青草久热精品视频,亚洲精品乱码久久久久久麻豆,亚洲男人天堂视频,精品一久久,日韩午夜免费视频,尹人香蕉,日韩精品欧美成人

雅虎2019校招筆試真題(四)

更新:2023-09-22 02:47:58 高考升學(xué)網(wǎng)

  Question49.(單選)

  三種常用的字符串判空串方法:

  1:boolisEmpty=(str.Length==0);

  2:boolisEmpty=(str==String.Empty);

  3:boolisEmpty=(str=="");

  哪種方法最快?——1

  1.1

  2.2

  3.3

  Question50.(單選)

  publicsealedclassSampleSingleton1

  {

  privateintm_Counter=0;

  privateSampleSingleton1()

  {

  Console.WriteLine(""初始化SampleSingleton1。"");

  }

  publicstaticreadonlySampleSingleton1Singleton=newSampleSingleton1();

  publicvoidCounter()

  {

  m_Counter++;

  }

  }

  以上代碼實現(xiàn)了設(shè)計模式中的哪種模式?——3

  1.原型

  2.抽象工廠

  3.單鍵

  4.生成器

相關(guān)文章

最新圖文