Java is Compiled and Interpreted language.
Java program gets compiled when you compile it(with javac command). After Java Program gets compiled, .class file gets generated, which is in byte code format.
This .class file is Platform independent and can run on any platform, having JVM(Java Virtual Machine).
.class file is interpreted by JVM when you try to run the program(with java command).
Hence Java is Compiled and Interpreted Language.
Relatively, Interpreted languages run slower compared to Compile only languages.