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

Is it possible to learn java at home without coaching in one month?
It all depends on you. If you are already aware of programming then it is definetly possible to learn java at home. But if learn through a tutor then you can learn easily.
Pritom
0 0
5
What are the topics covered under core Java?
The major topics are listed below: 1. Java Basics - Variables, Data types, Operators, Control Statements,Strings, Arrays and Functions. 2. Object Oriented Concepts - Classes, Objects, Constructors, Inheritance,...
Sahil
0 0
6
Who can provide good Java training with real-time but not institute?
I provide industry specific training to students. If interested check my profile. I used to provide training in Big Data, Java, Scala and Spark too.
Sridevi
0 0
6
How to use Java?
Basically JAVA is in two parts such as: Core JAVA. Advance JAVA and Frame works. What you want to learn Complete JAVA or Core part only.
Vinod

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 : Compile-time Versus Runtime optimization
While designing and development, one should think in terms of compile-time and run-time.It helps in understanding language basics in a better way.Let's understand this with a question below : What...
S

Priority in TestNG
public class Priority { @Test (priority=1)public void login() {System.out.println("login");} @Testpublic void email1() {System.out.println("email1");} @Test (priority=-2)public void email2() {System.out.println("email2");} //I...
S

Sarthak C.

0 0
0

Inheritance In Java
Inheritance: The process of getting properties and behaviors from one class to another class is called inheritance. Properties: Variables Behaviors: Methods The main purpose of the inheritance...
D

Deleted U.

1 0
0

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

COMPILATION AND INTERPRETATION
Compilation and Interpertation Process javac (compiler) java(interpreter)high level code - > compile - > bytecode - > interperted - > machine code Bytecode...

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