It happened near a Wells Fargo Bank at Cherry and Baseline avenues.
Police responding to a possible shooting at the location found a man with multiple gunshot wounds.
The victim was taken to a hospital to undergo surgery.
The two suspects were arrested after an extensive search of the neighborhood.
One suspect was nabbed by a police K-9 as he hid in a garage.
The other surrendered without incident.