What is the difference between compile time error and runtime error?

+1 vote
asked Jul 14, 2018 in Programming/Design by Anita Jk (220 points)
What is the difference between compile time error and runtime error?

1 Answer

0 votes
answered Jul 14, 2018 by Shawn (99,990 points)
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.

98,443 questions

94,800 answers

1,270 comments

6,992,550 users

...