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 & Archiect - Azure & Databricks, Spark,Kafka,Snowflake,Scala,Pyspark,NoSQL,Cloud

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 Multithreading and miltiprocessing?
It is simple to understand. You question itself contains the answer. Only the keynote is: A single processor/core of the cpu can execute single task at a time, not more than one task. And you should...
Milan

How to prepare for CORE JAVA for Android Developement?

Core Java is required for basic understanding of inheritance , AWT with button action programs, library usage etc then after u can genrate your logic with additional topics of Android
Rishabh
0 0
6
simple way to explane the servlet in java
Servlet is a program wich executed in server and assists in responding to client queries..... Usually confidential tasks are done by using servlets or other server side codes
Anish
Should we learn DBMS and RDBMS without any Java training?
java or i can say any programming language is not required to learn DBMS or RDBMS
Karthik
0 0
6
best source to learn java from?
Main source if information on Java is oracle documentation. But it takes your time to read through, a lot more than you expect. Better prefer a trainer who can give what you need.
Himanshu

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

Ask a Question

Related Lessons

Class, Object and Methods in JAVA
Lesson-1: Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But...

How 4 byte float can store 8 byte long values in java ?
long l = 12464545L; float f = l; (fine) int i = l ; (Error) if we see the how this magic happens as we know the answer lies in the floating point representation as in floating points values does not...

Crux Of The Basic Interview Question Asked Around It Professionals
Question: Explain PSVM() in Java. Answer: This question is asked from a differnet persctive. Person asking this question is looking for deep java concepts. If answer in your mind is something like...

History Of Java
Java history is interesting to know. The history of java starts from Green Team. Java team members (also known as Green Team), initiated a revolutionary task to develop a language for digital devices such...
V

Java Overview
Java platform overview Java platform components The Java platform consists of the following components. The Java language Like any programming language, the Java language has its own structure, syntax...
A

Akshay Shende

0 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