Check out example codes for "intellij set target bytecode version". It will help you in understanding the concepts better.

Code Example 1

<properties>
            <maven.compiler.source>1.8</maven.compiler.source>
            <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

Learn ReactJs, React Native from akashmittal.com