D8 node load

In D8 way of loading a node is as follow

1) Add following name space at top of your code.
use DrupalnodeEntityNode;

2) Use following line of code to load node
$node = Node::load($nid);

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/2/feed