Elhanan, son of Jair
Elhanan son of Jair-Oregim the Bethlehemite ( "’Elḥānān ben-Ya‘rê ’Ōrəḡîm Bêṯhallaḥmî") appears in 2 Samuel 21:19, where he is credited with killing Goliath. As this contradicts the better-known story in 1 Samuel 17 in which it is the famous David who kills Goliath, the 4th century BC Book of Chronicles explains the second Goliath by saying (20:5) that Elhanan "slew Lahmi the brother of Goliath", possibly constructing the name Lahmi from the last portion of the word "Bethlehemite" (""beit-ha’lahmi"). The King James Bible translators modified 2 Samuel 21:18–19 to make it read as if Elhanan had slain Goliath's brother: "And there was again a battle in Gob with the Philistines, where Elhanan the son of Jaare–oregim, a Beth–lehemite, slew "the brother of" Goliath the Gittite, the staff of whose spear was like a weaver's beam", although the Hebrew text at this point makes no mention of the word "brother"; the medieval Jewish authors of the Targum Jonathan solved the problem by explaining Elhanan as an alternative name for David. However, this makes it difficult to explain why David is called "Elhanan" in verse 19 but consistently "David" in the verses that surround it (15, 16, 17, 21, 22). The most widely accepted explanation is that the storytellers have displaced the deed from the obscure Elhanan to the more famous character, David.
Goliath
A story very similar to that of David and Goliath appears in the Iliad, written circa 760–710 BCE, where the young Nestor fights and conquers the giant Ereuthalion. Each giant wields a distinctive weapon—an iron club in Ereuthalion's case, a massive bronze spear in Goliath's; each giant, clad in armor, comes out of the enemy's massed array to challenge all the warriors in the opposing army; in each case the seasoned warriors are afraid, and the challenge is taken up by a stripling, the youngest in his family (Nestor is the twelfth son of Neleus, David the seventh or eighth son of Jesse). In each case an older and more experienced father figure (Nestor's own father, David's patron Saul) tells the boy that he is too young and inexperienced, but in each case the young hero receives divine aid and the giant is left sprawling on the ground. Nestor, fighting on foot, then takes the chariot of his enemy, while David, on foot, takes the sword of Goliath. The enemy army then flees, the victors pursue and slaughter them and return with their bodies, and the boy-hero is acclaimed by the people.