Did you try to, like, look for documentation?
umask - Wikipedia, the free encyclopedia
When a file is created, the program which creates it requests a permission mask. This mask gets ANDed with the compliment of the umask, and the file is created with the resulting permissions.