After flunking the state bar examination for a second time, John F. Kennedy Jr. said he would take the test again and again "until I'm 95" or he passes.

But the 29-year-old son of the late President Kennedy has only one more chance to pass the grueling 12 1/2-hour, two-day test if he wants to keep his job as an assistant district attorney in Manhattan."I'm clearly not a major legal genius," he told a news conference Monday.

Colleen Roche, a spokeswoman for Manhattan District Attorney Robert Morgenthau, said Kennedy, a prosecutor since August, will be asked to resign from his $30,000-a-year post if he fails again.

"All assistants get three chances," Roche said. "It's a longstanding office policy. He will take it again in July."

Kennedy fell 11 points short of the passing score of 660 out of 1,000 points, said a source who spoke on condition of anonymity.

Kennedy, a graduate of the New York University Law School, first took the bar exam last July with 64 other new members of Morgenthau's staff, Roche said. Of the 65, she said, Kennedy was one of seven who flunked. He took the test again in February along with those who failed. Of the seven, at least two passed on the second go-round.