J heads

I'm going to look at a couple engine blocks this weekend. One is a 340. Do j heads fit on a 340? Or are j heads for 360? Thanks