you dont have to worry about the compiler since oracle jdk 's compiler would be the one there [there are other GNU ones too but the official one is always better] you can download it from there site

try java complete reference
or beginners guide to java [like thing]

java kind of has a similarity in syntax with C but the concepts are far different so dont mix up