UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

When we are used the compiler and interpreter? what is the difference between them?

Asked by Last Modified  

29 Answers

Learn Java

Follow 0
Answer

Please enter your answer

Java/J2EE, B.E./B.Tech/MCA SubjectsTraining

Java code is the best example of compiled as well as interpreted. Java Compiler does the task of compiling . Java file to .class file(binary form). JVM works as interpreter to let Operating system understand the compiled code instructions.
Comments

Java,J2EE,Spring,Webservices,Hibernate,Cloud And Android Expertise

compiler compiles the high level language code into binary code and it will be done in one shot. Whereas interpreter will also do the same but line by line
Comments

Java Salesforce Certified Expert with 2+ years of Experience

compiler compiles whole page or file at one time but interpreter executes line by line like we do using debugger
Comments

Coaching

Compiler and interpreter, both basically serve the same purpose. Compiler converts the high level instruction into machine language WHOLE PROGRAM AT A TIME while an interpreter converts the high level instruction into machine level language LINE BY LINE. •Before execution, entire program is executed...
read more
Compiler and interpreter, both basically serve the same purpose. Compiler converts the high level instruction into machine language WHOLE PROGRAM AT A TIME while an interpreter converts the high level instruction into machine level language LINE BY LINE. •Before execution, entire program is executed by the compiler whereas after translating the first line, an interpreter then executes it and so on. •List of errors is created by the compiler after the compilation process while an interpreter stops translating after the first error. •An independent executable file is created by the compiler whereas interpreter is required by an interpreted program each time. read less
Comments

Compiler Takes Entire program as input Interpreter Takes Single instruction as input .
Comments

5+ years of experience in computer science with c++ for class 11th and 12th , java, spring mvc, angular.js for MCA, BCA, 12th, B.tech. Working as Team leader in IT company

The interpreter takes one statement then translates it and executes it and then takes another statement. While the compiler translates the entire program in one go and then executes it. - Compiler generates the error report after the translation of the entire page while an interpreter will stop...
read more
The interpreter takes one statement then translates it and executes it and then takes another statement. While the compiler translates the entire program in one go and then executes it. - Compiler generates the error report after the translation of the entire page while an interpreter will stop the translation after it gets the first error. - Compiler takes a larger amount of time in analyzing and processing the high level language code comparatively interpreter takes lesser time in the same process. - Besides the processing and analyzing time the overall execution time of a code is faster for compiler relative to the interpreter. read less
Comments

Computer Trainer

Both compiler and interpreter converts your source program into object code i.e. executable code. Difference is that compiler converts the whole source program into object code. Interpreter converts the source program into object code line by line. compiler run the object code after translation the whole...
read more
Both compiler and interpreter converts your source program into object code i.e. executable code. Difference is that compiler converts the whole source program into object code. Interpreter converts the source program into object code line by line. compiler run the object code after translation the whole source program into object code whereas interpreter translates one line run it and get goes to next line to translate read less
Comments

Software Professional Trainer with 26+ years of Experience in Software Design and Development

Programming Languages which generate binary file will use the compiler. Programming Languages which is not generating binary file will use the interpreter. Which is also called as scripting languages. Binary file will be running very fast when compare to script. In Binary file, the processor fetch...
read more
Programming Languages which generate binary file will use the compiler. Programming Languages which is not generating binary file will use the interpreter. Which is also called as scripting languages. Binary file will be running very fast when compare to script. In Binary file, the processor fetch the binary contents directly and running without any further conversion. In case of script, the process will fetch each instruction at a time and converted into binary and execute. Hence it requires more time when compare to binary. Binary file will consume less memory/resource when compare to script. Binary will not be generated unless are syntax errors are rectified. Script will be exectuted, and stop when error occurred. Once error is rectified again continue execution from that line. Example C, C++ are programming languages which are used compiler to convert into binary format PHP, PERL are programming languages which are used interpreter to convert each instruction at a time, convert into binary then go to next instruction. read less
Comments

IT Professional Trainer with 15 years of experience in IT Industry

1. Compiler takes entire program as input and Interpreter takes single instruction as input. 2. Intermediate object code is generated in Compiler where no intermediate object code is generated in Interpreter. 3. Conditional control statements are executes faster in compiler and where in interpreter...
read more
1. Compiler takes entire program as input and Interpreter takes single instruction as input. 2. Intermediate object code is generated in Compiler where no intermediate object code is generated in Interpreter. 3. Conditional control statements are executes faster in compiler and where in interpreter it executes slower. 4. Example for compiler: C compiler, Example for interpreter: BASIC. read less
Comments

MCA, BSC(H)(IT), 2 years diploma in advanced software Technology.

Compiler A compiler is defined as a computer program that is used to convert high level instructions or language into a form that can be understood by the computer. Since computer can understand only in binary numbers so a compiler is used to fill the gap otherwise it would have been difficult for...
read more
Compiler A compiler is defined as a computer program that is used to convert high level instructions or language into a form that can be understood by the computer. Since computer can understand only in binary numbers so a compiler is used to fill the gap otherwise it would have been difficult for a human to find info in the 0 and 1 form. Earlier the compilers were simple programs which were used to convert symbols into bits. The programs were also very simple and they contained a series of steps translated by hand into the data. However, this was a very time consuming process. So, some parts were programmed or automated. This formed the first compiler. More sophisticated compliers are created using the simpler ones. With every new version, more rules added to it and a more natural language environment is created for the human programmer. The complier programs are evolving in this way which improves their ease of use. There are specific compliers for certain specific languages or tasks. Compliers can be multiple or multistage pass. The first pass can convert the high level language into a language that is closer to computer language. Then the further passes can convert it into final stage for the purpose of execution. Interpreter The programs created in high level languages can be executed by using two different ways. The first one is the use of compiler and the other method is to use an interpreter. High level instruction or language is converted into intermediate from by an interpreter. The advantage of using an interpreter is that the high level instruction does not goes through compilation stage which can be a time consuming method. So, by using an interpreter, the high level program is executed directly. That is the reason why some programmers use interpreters while making small sections as this saves time. Almost all high level programming languages have compilers and interpreters. But some languages like LISP and BASIC are designed in such a way that the programs made using them are executed by an interpreter. Difference between compiler and interpreter • A complier converts the high level instruction into machine language while an interpreter converts the high level instruction into an intermediate form. • Before execution, entire program is executed by the compiler whereas after translating the first line, an interpreter then executes it and so on. • List of errors is created by the compiler after the compilation process while an interpreter stops translating after the first error. • An independent executable file is created by the compiler whereas interpreter is required by an interpreted program each time. read less
Comments

View 27 more Answers

Related Questions

What is the advantage of Java?
Java is object-oriented. This allows you to create modular programs and reusable code. Java is platform-independent. One of the most significant advantages of Java is its ability to move easily from one computer system to another
Kripal
0 0
5
Why do many software engineers not like Java?
Opinions on programming languages can vary, but some software engineers may express dissatisfaction with Java for reasons such as perceived verbosity, boilerplate code, and a slower pace of language evolution...
Guruprasad
0 0
5
What is the difference between abstraction and encapsulation?
Encapsulation is wrapping, just hiding properties and methods. Encapsulation is used for hide the code and data in a single unit to protect the data from the outside the world. Class is the best example...
Neval
Why is finally introduced in Java?
Finally is introduced in Java to do the code clean up or if you wants to perform some operation irrespective of whether the code throws an Exception or not.
Agastya

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Inheritance In Java
Inheritance: The process of getting properties and behaviors from one class to another class is called inheritance. Properties: Variables Behaviors: Methods The main purpose of the inheritance...
D

Deleted U.

1 0
0

doWhile example in Java
public class doWhilePracticleEx { public void test() { } public static void main(String args) { String q1 = "Who is PM of India?"; String a1 = "Sonia Gandhi"; String a2 = "Rahul Gandhi"; String a3...
S

Sarthak C.

0 0
0

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

Try to clear up the basics, if basics are clear then you can go ahead with any difficult problem
Hey guys, To all the students i just want to convey that just clear up your basics so that they can help you solve anyu problem and you would achieve a great success. Regards, Ishani Chakraborty

Why We Should Go With Java?
Java is widely used in the Desktop application, web application, mobile development, games etc. Java is an object-oriented programming language. Its follow all the oops concept Like Object, Class,...
B

Bhupendra Patidar

0 0
0

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more