This question already has an answer here:
I keep seeing Android devices in shops that state what version of Android is installed. Thence I conclude that not all Android devices can be updated to a current version of Android.
How can I tell before I buy (or even after I buy) if a device can be updated to the newest release or not?
Can Samsung's Android devices usually be updated?
Update: Note that I am not refering to abandoned devices but to current devices available in stores now.