why do we check if driver object has already created code example
Example: why do we check if driver object has already created
(if driver==null)
This is because of singleton pattern.
It will not create object of the class
again if already initialized once.