Difference between IHostingEnvironment and IWebHostEnvironment ?

Code Example - Difference between IHostingEnvironment and IWebHostEnvironment ?

                
                        The IHostingEnvironment is an interface for . Net Core 2.0 and 
IWebHostEnvironment has replaced IHostingEnvironment in . Net Core 3.0. 
Both these interfaces need to be injected as dependency in the Controller 
and then later used throughout the Controller.
  
Both these interfaces have two properties.
1. WebRootPath – Path of the www folder.
2. ContentRootPath – Path of the root folder which contains all the Application files.