Android 9.0 is significantly more demanding than KitKat. Before attempting an upgrade, ensure your device meets these minimum technical requirements :
If your device manufacturer has made Android 9.0 available for your device, you can upgrade using the OTA update method: upgrade android 4.4.2 to 9.0
Every manufacturer is different.