majorVersion property
The major version number of the operating system. For example, for Windows 2000, the major version number is five. For more information, see the table in Remarks. https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ns-wdm-_osversioninfoexw#remarks
Implementation
final int majorVersion;