Updated on 18 October 2017
What will be the difference between Drupal 8.x and 9.x?
Each new 8.x release introduces API changes with backward compatibility.
API’s that were deprecated will be removed in Drupal 9.
So, if your custom code follows the API changes the Drupal 9 update should be easy.