Who determines whether an individual can act as an expert witness?

1.the prosecutor
2.the judge & jury
3.the defense attorney
4.the bailiff