With the release of Selenium 3+, the minimum required version of Java is 8.
If an older selenium version is needed, you can check the requirements on the official Selenium changelog.
Here is a reference sheet for the more recent Selenium version:
Selenium version | Minimum Java Required |
---|---|
3.0.0+ | Java 8 |