2 Samuel 5:4 New International Version
David was thirty years old when he became king, and he reigned forty years.
Now Jesus himself was about thirty years old when he began his ministry. He was the son, so it was thought, of Joseph, the son of Heli
What is the significance of this connection and the fact that their ages are mentioned explicitly in the Scripture?