A hearing to decide the fairness of a deal that would let Google create the world’s largest digital library has ended — but not before a judge expressed skepticism.

Southern District Judge Denny Chin raised questions toward the end of a five-hour hearing in Manhattan yesterday indicating he had doubts about the $125 million settlement of two lawsuits.