📜  为什么我们要检查驱动程序对象是否已经创建 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:44.596000             🧑  作者: Mango

代码示例1
(if driver==null)
This is because of singleton pattern. 
It will not create object of the class
again if already initialized once.