Is swap partition necessary when installing linux?

Not necessary but still useful, especially if you have low amount of RAM.