1) after the harvest, you store the seeds in a dry, dark space, in that way they can last for years.
2) when your plants start flowering, and you can see if it's male ofr female, remove all the males, so they won't get ****** up, but if you want seeds, you need to let them get '****** up' :)...