Compile time errors are any type of error that prevents java programs compile like a syntax error, a class not found, a bad file name for the defined class, a possible loss of precision when you are mixing different java data types and much more.
While A runtime error is an error that happens, while the program is actually running.