Drupal 8: Get sitewide default email address

In Drupal we have site wide common Email ID. This Email id is used for the set as default from Email address for all emails sent from the site. Also, this email id is used to receive the emails regarding the updates for Core and other modules.

The below is the example of accessing the Default mail id fromany Drupal 8 site.

Syntax: 

\Drupal::config('system.site')->get('mail');
Category: