As you know there are so many alternate methods to get product details by given id in Magento 1.x. This code snippet will be very useful at many custom development with Magento.

Lets check the code used in Magento 1.x.

List of some methods to get various product details like Short description, Name, Price and Product URL etc.

Now lets see how to get product details by id in Magento 2.x. You can load the product by product id simply as below