UrbanPro

Learn Java Training from the Best Tutors

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

Search in

What is the difference between a C program execution and a Java program execution?

Asked by Last Modified  

5 Answers

Learn Java

Follow 4
Answer

Please enter your answer

Technical Lead and Architect - Databricks, SparkScala, Kafka , Azure Cloud ,Pyspark,Snowflake

When we compile C program then it convert into exe file ie Machine language with the help of OS lib file which is platform dependent . If we compile java prgram then it convert into class file with the help of JVM which is patform independent . When we execute class file with the help of java interpreter...
read more
When we compile C program then it convert into exe file ie Machine language with the help of OS lib file which is platform dependent . If we compile java prgram then it convert into class file with the help of JVM which is patform independent . When we execute class file with the help of java interpreter then it executes with the help of JVM . read less
Comments

Computer Wizard

In the C program, the execution starts from main function. In the Java program, the execution starts from the main class, and Java creates a 3 files in the execution, those are class file and object file and Java file. This Java code execution done only first time remaining times object will run whenever...
read more
In the C program, the execution starts from main function. In the Java program, the execution starts from the main class, and Java creates a 3 files in the execution, those are class file and object file and Java file. This Java code execution done only first time remaining times object will run whenever you want execution. But C will execute total program every time. read less
Comments

C program execution : For executing any program we type it in a text editor and save it by .c extension this .c extension file is the source file and input to the compiler which converts it to machine equivalent code. If there are no errors then .obj file is made which is input to linker to link library...
read more
C program execution : For executing any program we type it in a text editor and save it by .c extension this .c extension file is the source file and input to the compiler which converts it to machine equivalent code. If there are no errors then .obj file is made which is input to linker to link library files and then the .exe file is generated if in gcc a.out is the default file created . java program execution : First of all we need Java Virtual machine by installing JDK(Java Development Kit) to execute any java program . when we compile any program with .java as source file it gets converted to .class file if there are no errors. This .class file consists of bytecode which is input to JVM(interpreter). This file will only be made if there is any class in .java source file. In case of empty java file no .class file is created .The name of the .class file will be the name of the class in your source file. If there are multiple class in java files then corrosponding to each class a .class file will be created. read less
Comments

C program execution: For executing any program we type it in a text editor and save it by .c extension this .c extension file is the source file and input to the compiler which converts it to machine equivalent code. If there are no errors then .obj file is made which is input to linker to link library...
read more
C program execution: For executing any program we type it in a text editor and save it by .c extension this .c extension file is the source file and input to the compiler which converts it to machine equivalent code. If there are no errors then .obj file is made which is input to linker to link library files and then the .exe file is generated if in gcc a.out is the default file created . Java program execution: First of all we need Java Virtual machine by installing JDK(Java Development Kit) to execute any java program. when we compile any program with .java as source file it gets converted to .class file if there are no errors. This .class file consists of bytecode which is input to JVM(interpreter). This file will only be made if there is any class in .java source file. In case of empty java file no .class file is created. The name of the .class file will be the name of the class in your source file. If there are multiple class in java files then corresponding to each class a .class file will be created. read less
Comments

Tutor

C Program - Compiler converts code to equivalent machine code. Java - Compiler converts code to byte code. Further Interpreter (JVM) converts byte code to equivalent machine code.
Comments

View 3 more Answers

Related Questions

What is difference between C language and Java language?
C is more procedure-oriented while JAVA is data-oriented. Java is an Interpreted language while C is a compiled language. C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up...
Poonam
0 0
5
Why Java doesnot have Pointer ?
To avoid memory hacks and leaks it is an intentional decision taken by JAva Pioneers
Satyajit
Which is better, PHP or Python? Why?
Python . Simple syntax,More readable,General purpose programming language
Kartheek
0 0
5
Can I build iPhone apps using Python?
Yes, you can use PyMob app where apps can be written purely in Python, and the compiler tool flow converts them in native source codes for various platforms. But there are some cons on using PyMob, the...
Sunil
0 0
5

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

Ask a Question

Related Lessons

Java : Command Line Arguments
The parameters which are provided to the program at the command line. Eg:d:\>java a 10 20 30 Here,“java” is an interpreter, “a” is filename,10,20,30 are arguments passed to...
S

Svg Reddy

0 0
0

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...

Java and C trainer
Always think any conspect with real-time example like Object -- object must have states and behaviour then only we will call that thing is Object like fan is Object (rotating,color)

What Is Java? Explain The History Of Java
i. Ovierview: Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems' Java platform (Java...

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...
M

Recommended Articles

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

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 >

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 >

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