YAHOO笔试题
10-16 00:00:09
来源:http://www.qz26.com 笔试题目 阅读:8482次
导读:1: bool isEmpty = (str.Length == 0); 2: bool isEmpty = (str == String.Empty); 3: bool isEmpty = (str == "");哪种方法最快?1. 12. 23. 3 public sealed class SampleSingleton1{private int m_Counter = 0;private SampleSingleton1(){Console.WriteLine(""初始化SampleSingleton1。"");}public static readonly SampleSingleton1 Singleton = new SampleSingleton1();public void Counter(){m_Counter ++;}}以上代码实现了设计模式中的哪种模式?1. 原型2. 抽象工厂3. 单键4. 生成器 上一页 [1] [2]
YAHOO笔试题,标签:银行笔试题目,企业笔试题目,http://www.qz26.com
1: bool isEmpty = (str.Length == 0);
2: bool isEmpty = (str == String.Empty);
3: bool isEmpty = (str == "");
哪种方法最快?
1. 1
2. 2
3. 3
public sealed class SampleSingleton1
{
private int m_Counter = 0;
private SampleSingleton1()
{
Console.WriteLine(""初始化SampleSingleton1。"");
}
public static readonly SampleSingleton1 Singleton = new SampleSingleton1();
public void Counter()
{
m_Counter ++;
}
}
以上代码实现了设计模式中的哪种模式?
1. 原型
2. 抽象工厂
3. 单键
4. 生成器
Tag:笔试题目,银行笔试题目,企业笔试题目,求职笔试面试 - 笔试题目
下一条:笔试题(线程安全)