It happened Wednesday after 10 pm on Rinaldi Street and Sady Court, outside the Visalia Cemetery.
Visalia police identified the suspect as Albert Pineda.
The victim was taken to Kaweah Health Medical Center and is expected to be OK.
A motive for the attack was not released.
Pineda has been booked into the Tulare County Jail.