Versions in Java
are there different versions of Java?
are there different versions of Java?
> how do i find if the compiler supports this version or not?
Read the documentation for your version. As a general rule, compilers will compile source for its version of the JDK and previous versions.
~
> javac -version
>
> i dont know what that means. i am completely new to
> java
Run the compiler with command line option "-version". It will print out a message that includes its version number.