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 - BigData,Databricks, SnowFlake,Pyspark,Azure Cloud ,Confluent Kafka

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 are the difference between abstract class and Interface?
Abstraction : Hiding unnecessary details of object and shows only essential features of Object to communicate. abstract class : partially defined Object interface :Complete specification of Object class : Complete definition of Object
Ashish
What are the various Java certifications?
The certifications are : 1) Oracle...
Rama
1 0
5
Which is the best programming language to learn in today's era? Java, C,C++, Python or any else?
Java is the best language because it is platform indepedent and opensource u can download java software at anywhere
Swati
0 0
5
How do I learn Java? From book or internet or a coaching?
It is good to learn Java from Coaching where you will get more exposure in learning at faster pace.
Suresh
0 0
7
will I get certificate
Better than certificate if you enroll with me you will get confidence and lot of practical knowledge...certifications dont matter after a period of time what really matters is your approach to a problem...
Sk.

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

Ask a Question

Related Lessons

How to create a Singleton class?
How to create a Singleton class: Q) What is a singleton class? A) In simple words, a singleton class is a class which can have only one instance at any point of time throughout the application and provides...

Demand of java in industry
Java is one of the widest use language in the industry all around the world As in software market more than 80% software, platform developed using java. Java comes in three flavours:- j2se for window based...

Prashant Tomer

0 0
0

Constructor Overloading
public class ConstructorOverloading { public ConstructorOverloading(){ System.out.println("default"); } public ConstructorOverloading(String a){ System.out.println("a"); } public ConstructorOverloading(int...
S

Sarthak C.

0 0
0

On the Job training is always best
On the job training always provides an opportunity to learn the best industry practices. While you work on real time you would encounter many challenges that will force you to learn many new things. Class...
M

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

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