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
What are the best websites to learn java as well as get a certificate from them?
To learn basic java i suggest javatpoint is good for knowledge as well as concept but for certification refer book
Abirami
0 0
7
hat is java
Introduction to JAVA Programming concepts of Basic Java Language Features Data Types, Variables Control Statements OOPS Concepts Writing your own Java Classes Object...
Narendra
0 1
8

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

Ask a Question

Related Lessons

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...

4 Things Every Tech Startup Needs to Know About The Coaching Industry
Knowledge on any subject is widely available to those who wish to learn. However, just gathering knowledge from other people doesn’t guarantee results in business. Results come from applying what...

Software Testing
Software testing is a process of executing a program or application with the intent of finding the software bugs. It can also be stated as the process of validating and verifying that a software program...

How do i get best Campus / Off Campus Placement?
Companies are looking for Skilled Freshers. So build your technical skills while doing MCA / BTech / BCA / BSc (IT or CS) into below areas- 1. Strong your programming & debugging skills ...

Introduction to Course Content
Video about what we are going to learn throughout the Java Training Session .

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