SAN FRANCISCO — The nation may soon have an answer to a legal question for the ages: Does a monkey have standing to sue for copyright infringement?

At a hearing Wednesday, U.S. District Judge William Orrick III of the Northern District of California seemed highly skeptical of a lawsuit brought by animal rights advocates on behalf of Naruto, the crested macaque who shot a series of sensational selfies using a nature photographer’s camera.