Answers for "why do we check whether driver object has already exists"

0

why do we check whether driver object has already exists

(if driver==null)
This is because of singleton pattern. 
It will not create object of the class
again if already initialized once.
Posted by: Guest on January-14-2021

Code answers related to "why do we check whether driver object has already exists"

Browse Popular Code Answers by Language