The game was released for the PlayStation 3 (PS3), Xbox 360, and other platforms. The PS4 is not backward compatible with most PS3 games, including "Black Ops II," meaning you cannot simply insert a PS3 game disc into a PS4 and play it.
The PlayStation 4 disc drive and hardware can't read PS2 or PS3 discs, so the easiest way to access your favorite old games is to use a PlayStation Plus Extra or Deluxe membership. The Extra tier provides access to the Game Catalog, which includes some PS4 titles.