Load current user programmatically id

Drupal 8:

Get Current user and id.

Drupal::currentUser();

id 

Drupal::currentUser()->id()

Load  user with uid

Drupal\user\Entity\User::load($uid);

Load Currently logged in user

$uid = Drupal::currentUser()->id();
Drupal\user\Entity\User::load($uid);