The purpose of this study is to assess the safety and pharmacokinetics of niraparib when administered in combination with an androgen receptor (AR)-targeted therapy (apalutamide or abiraterone acetate plus prednisone) in adult men with metastatic castration resistant prostate cancer (mCRPC) who may or may not have deoxyribonucleic acid (DNA)-repair anomalies.