There is a class A having a static variable static Logger log. In class A an object of class B is created and method of class B is called.

Class B = new Class B();
B.getConn(log);

now in class B when we declare the log variable do we need to declare it static,or if we do not declare it ststic still will it work??

I would like to declare the log variable for class B so that all the methods can use the same logger...