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

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
How can I learn Java from home?
The best way to learn any technology is to: Step 1- Read in brief about the language from online source. Step 2- Understand basic syntax. Step 3- Take some mini project and start building from scratch...
Divya
0 0
5
Can we use pointer in java?
No, we can't. Java has reference variables which contains address of objects. The reference variables are substitute to pointers in java. But, we cannot perform mathematical operations on reference variables...
Manish
What are the requirements of learning Java? How long it takes to learn java and what is the fee structure?
Core java is main to learn, if you join my classes it takes one month to become master.
Ruuchi
What exactly the work of constructor( default, parameterized) especially about instance variables initialization. Suppose user initialize the instance variables explicitly. Then what is the use of parameterized constructor over here.. Please reply me
Construct as the name suggest are used to construct the object. So, they are invoked only once and that too at the time of object creation. Default Constructor : Initialize all the instance variables...
Surekha

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

Ask a Question

Related Lessons

Tips for Entry Level Java Job Seeker
3 steps you should take to make a break as a Java developer: Step 1: Invest in improving your job hunting skills encompassing interviewing, networking, and resume writing skills. Step 2: Keep applying...
A

Akshay Shende

1 0
0

How to create Rest web services in Java
Web services are web application components that lets two different applications to communicate over the network.Let if an application which in written java provides web services can be communicated through...

Differences Between HashMap vs HashSet In Java.
HashSet HashMap HashSet implements Set interface. HashMap implements Map interface. HashSet stores the data as objects. HashMap stores the data as key-value pairs. HashSet...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Easy way to remember Java keyword.
ACCESS MODIFIER ACCESS SPECIFIER abstract, assert, const, final, native, static, strictfp, super, synchronized, this, transient, void, volatile public, private, protected, default DATA...

Rohit Deshbhratar

1 0
0

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