How did Cape of Good Hope get its name?

It was named because of the great optimism engendered by the opening of a sea route to India and the East.

Answer2

The major cape close to the southern tip of Africa had not always been known as the Cape of Good Hope. Originally it was given the name Cape of Storms by the Portuguese explorer Bartholomeu Dias in 1488, due to the stormy weather. John II of Portugal renamed it for the above mentioned reasons.

John II of Portugal renamed it Cape of Good Hope because its discovery was a good omen that India could be reached by sea from Europe

Also known as cape of storms. It received its name because in the past it was very difficult for the ships to pass this point, especially during bad weather, without being wrecked as there are many rocks, etc close to the shore.