Compiling language and Interpreted language are the terms that we use to represent the different programming languages.
It is very important to know the difference between these two terms in order to get deep knowledge about Programming. We are going to discuss about these two terms here, but if you are new to programming world, check this article about Best ideas to start learning Programming.
In programming world, compiling means to translate the source code into machine code before the execution of programs. See the picture below to get familiar with this term.
In compiled programming languages, when you write a code, it is compiled by a compiler and convert the source code into the machine code. Compiler makes the bundle or packages of machine code which will run by computers to get the results.
A compiler is computer software that transforms computer code written in one programming language (the source language) into another programming language (the target language). Compilers are a type of translator that support digital devices, primarily computers.
Most of the high level programming languages are compiled language. Most common example includes C, C++, Java, and C#.
On the other hand, interpreted languages are those languages whose source codes executes line by line at the runtime.
Most of the interpreted languages have their own built-in interpreter. The main difference between compiling and interpreted language is that; while compiling the program, the output is already ready to be executed by machine.
But, in interpreted language, results gets ready at the time of interpretation which happens when the programs run.
What to choose, Compiled or Interpreted?
Well, this is your choice. Both the compiled and interpreted languages have their pros and cons. From the debugging point of view, it is very easy to find and fix the bugs in interpreted language. This is because, the program executes line by line. When interpreter find the error or bug at some point, program stops executing at that point.
But in compiled language, you have to go back to source code, check for errors, and again compile the source code to get the result.