First off, I apologise if this is a duplicate question. I found many similar ones, but none that directly address my question.
In preparation for an upcoming exam, I am
Seems that your Eclipse IDE uses Java 7 compiler. To change this to Java 8 use Project->Properties->Java Compiler->Compiler compliance level.