“(Mohammad) didn’t talk much. And I never saw him walk with anybody. Walking to class, I never saw him walk with anybody,” Velasquez said.

Mohammad was majoring in computer science and engineering.

One student still was hospitalized Thursday, and a staff member who suffered a collapsed lung was recovering after surgery, the school said in a statement. Price and another student were treated and released.

Student Lensy Maravilla, 19, said she was in a biology class on the second floor of the same building when a student ran in.

Maravilla said the student “was crying hysterically and came in and said that she had seen somebody get stabbed, or slashed, in the throat and she ran.”

Classes were canceled until Friday at the university about 120 miles south of Sacramento in the farm-rich San Joaquin Valley.

Larry and Yen Little drove about 110 miles from Elk Grove to get their daughter Dana. Larry Little said he knows incidents of campus violence are rampant.

“I knew someday it might, but I was just hoping it wouldn’t happen here. It’s a small campus out in the country,” Little said. “Thank God the guy didn’t have a gun, shooting people, killing them.”

Stabbings involving multiple victims on college campuses have not raised as much alarm as mass shootings because the attacks do not usually result in as many deaths or injuries. Several US colleges have been the site of knife attacks.

A student at Morgan State University in Maryland was charged in March with slashing two other students with a pocketknife outside a campus dining hall. In 2013, a 20-year-old student at a Texas community college wounded at least 14 people during a building-to-building attack.

UC Merced has about 6,000 students and opened a decade ago in the state’s farm belt in response to the burgeoning enrollment in the nine other UC campuses. Regents also felt the mainly agricultural region was unrepresented by higher education.

Chancellor Dorothy Leland sought to reassure families that their children would be safe at UC Merced.

“This was a tragic accident, a tragic event, OK? But the person who caused this event will no longer be able to cause an event in the future,” she said.