A hip joint prosthesis adapted to be implanted in a hip joint of a human patient. The hip joint prosthesis has a length axis extending in a proximal-distal direction when implanted. The hip joint prosthesis comprises a first proximal area and a second distal area, and wherein said first proximal area comprises a first metallic material having a first elasticity and wherein said second distal area comprises a second metallic material having a second elasticity. The first and second metallic materials are connected through net attractive forces, and the first and second metallic materials have different elasticity, such that the difference in elasticity affects the elasticity of the hip joint prosthesis along the length axis thereof.