Do nexus devices receive updates forever? If not how long?

Ive heard nexus devices recieve updates the day they arrive but how long do the devices continue to receive the updates?