The sex of most mammals, including humans, is genetically determined by the XY sex-determination system where males have X and Y (as opposed to X and X) sex chromosomes.
Mammalian sex determination is determined genetically by the presence of chromosomes identified by the letters x and y.