How does cucumber initialize a given step definition Java class which corresponds to a given feature file having multiple scenarios and all scenarios are sharing a Background (Given condition) to initialize a instance variable.
My Question is to know is it like one step definition Java class 's object per scenario given in feature file?
If my understanding is correct , does that impact performance of execution? Can it be improved having thread safety intact.