It was the first class of cops to graduate under Police Commissioner James O’Neill.

He thanked Martinez and called him “an exceptional young man,” who “showed incredible courage under fire in the [43 precinct].”

“When Paul Tuozzolo was murdered by an armed suspect in the Bronx, Officer Martinez, who was in the midst of field training, immediately fired back at the suspect killing him. In doing so, likely saved other officers that were directly in harm’s way,” said the top cop.

Another newly minted cop awarded at the 11 a.m. graduation ceremony was Joseph Vigiano, whose Detective father died in the 9/11 terror attacks.

“After the tragedy of September 11, the NYPD really took my family in, even more so than they already had,” said Vigiano, who received the Police Benevolent Association Award for Outstanding Company Sergeant.

“They just brought us in and took care of us, so I want to be part of that family,” he told reporters after the ceremony.

Vigiano will begin his career in the 75 precinct, where both of his parents started out.

Mayor De Blasio called the group of 449 men and 106 women “the best trained class in the history of the NYPD.”