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

Is learning Java worthwhile?
Yes, learning Java can be worthwhile as it is widely used in various industries, including web development, mobile app development, and enterprise applications.
Shantanu
0 0
5

Hi every one i have done my I com so plzz suggest me it course. I want do carrer in it field

First of all you should take the degree course with full concept because when you have chosen this subject then you will haveto try for best performance in it
Aquib
0 0
9
how to run a java program
go to command prompt then write the following-- For compilation: javac filename.java then press enter For run: java classname then press enter
Prem Kumar Pathak
What are the advantages of learning Java?
Dear Niteen Java is one of the most widest implemented technology for programming. Not only its used to develop full fledged Software Applications, but its also used for programming devices like Set...
Niteen
0 0
6
What is difference between throw and throws in Java programming?
throw keyword is used to throw Exception from any method or static block in Java while throws keyword, used in method declaration, denoted which Exception can possible be thrown by this method
Vinodha

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

Ask a Question

Related Lessons

Importance of Constructor's Visibility.
While developing program or implementing Singleton pattern we have learnt to mention constructor as private and known reason is -> to blocked its direct call from outside of class. But did we think...
M


Overloading in JAVA
When a class contains more than one method with the same method name but different argument types, then it is called Overloading. Methods are said to be Overloaded methods. Also, know as Compile time...

SWITCH STATEMENT IN JAVA
switch statement - condition statement - only once the checking takes place so we recommend use break statement. switch(condition/variable/choice){case 1: //statements break;case 2: // statements break;case...

Lambda Expressions in Java
A lambda expression, introduced in Java 8 is similar to a block of code resembling an anonymous function that can be passed to constructors or methods for execution as an argument. Examples: a)() ->...

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