Question : why do we check whether driver object has already exists
Answered by : obedient-ocelot-5tkogtygmlyl
(if driver==null)
This is because of singleton pattern.
It will not create object of the class
again if already initialized once.
Source : | Last Update : Thu, 21 Jan 21