Create Link to Sitecore Item Programmatically using Link Manager

As a Sitecore developer, we would always need to Link to different Sitecore Items, Media Items. So How Does Sitecore handles the Internal and External Link and How do we resolve the correct URL Programmatically? This article...