Passing Static variable value as a parameter in instance method

40 Views Asked by At

Can we pass a static variable value as a parameter in an instance method in Java?

static webdriver driver = webdriver.driver.chrome();

public void setup(webdriver ldriver) {
  this.driver=ldriver;
}

Can a pass static variable value to method?

0

There are 0 best solutions below