You can always ask the conductor before you get on to make sure
The Capital Corridor trains that go to San Jose all stop in Hayward. I think there are a couple that stop short in Oakland. Check the Capital Corridor schedule for details.
Thanks! Your answer is awaiting moderation.