answersLogoWhite

0

Run java codes in c

Updated: 11/5/2022
User Avatar

Wiki User

14y ago

Best Answer

You cannot unless you wrote some kind of translator. The only exception is NET which allows to run codes written in different languages using the same coding environment.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Run java codes in c
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is it possible to immediately run a program without compiling it?

Not in C++, unless you have an interpreter. Most C++ development systems, however, are based on the compiler idiom, so, the answer is no. However, Java is very close to C++, except for the platform and libraries, so one might consider Java to be an interpreter, however, you still must "compile" Java to byte code, so the answer is still no.


Does the iPod use Java programming?

The iPod uses Objective-C as its programming language. You may install an additional app that can run Java on your iPod device, however.


Header files in Java programming?

Java does not require header files like C/C++.


Which brands of laptops can run JAVA?

Any computer (desktop or laptop) can run Java.


Both Java and C plus plus compile source code to object code yet Java is called an interpreted language while C plus plus is called a compiled language explain this notion?

It can easily be explained by the fact that Java does not compile to object code. Java compiles to byte code that is suitable for interpretation by the Java virtual machine. C++ compiles to native machine code and therefore does not require interpretation of any kind. As a result, C++ programs run somewhat quicker than equivalent Java programs. However, because Java is interpreted, it is highly portable. Any machine with a Java virtual machine implementation (which is pretty much every device today) can run Java programs built from a single compilation. C++ requires that the code be written specifically for each platform and that the source be compiled separately upon each supported platform.

Related questions

Which language is faster java or c plus plus?

C++ compiles to native machine code whereas Java compiles to byte code which must run within the Java Virtual Machine. The extra layer of abstraction means that, comparing like for like, a C++ program will easily outperform its Java equivalent. Thus C++ is easily the faster of the two.


How do you import others codes in java?

using servlets, php, and database we can connect import codes into java


Which one is better C or c?

it depends on what do you want to do. C is a compiled language, which means that the source is compiled in an executable that run directly in the machine and Java is interpreted (it is compiled to a 'byte code' that the java vm reads and executes this has several advantages and disadvantages Java is cross-platform (works in many OS's) you don't need to recompile the java app to get it to work in another platform in C you have to recompile it in each platorm you want to run it C is more efficient because it's compiled. Java is more a high-level language. this means that there are lots of things that are made automatically for you (such as memory handling etc) that in C aren't. this is an advantage and also a disadvantage, because in C you can control more accurately what your app does, increasing the efficiency, but it's hard. Java is an object oriented language (has classes and all that) I find it very useful to make big apps. Java needs the interpreter to work that means that if someone wants to run your app, he'll have to dl and install Java. I prefer java, but each one has his pros and cons. it depends on what do you want to do: Program algorithms, calculations etc: C is better Other stuff: Java


Why java is platform independent and also prove how it is possible?

WHY MEANS the java is a platform independent language for the sake of it has its own platform to run the program it doesn't require any platforms like c and C++


What are the features in java that makes it similar to C programming?

Java is not similar to C. Java is, however, similar to C++. Both C++ and Java are object orientated programming languages (OOPL's).


Is it possible to immediately run a program without compiling it?

Not in C++, unless you have an interpreter. Most C++ development systems, however, are based on the compiler idiom, so, the answer is no. However, Java is very close to C++, except for the platform and libraries, so one might consider Java to be an interpreter, however, you still must "compile" Java to byte code, so the answer is still no.


What is difference between java and c sharp garbage collector?

The one for Java is not invoke/control by the application. The one for .net (C# is just one of the languages) is invokable (may be called) but still no control over when the gc should run, how long to run, etc.


What is a java programming?

A java program is a program that is coded and run in the programming language called java. Java is similar to c++ in structure, and is more common in web apps. C++ is the equivalent for more heavy duty programs such as most software used to compose a java program.


Do you have to have java on your coumpter to run everything on your coumpter?

No; lots of programs run without Java. You only need the Java runtime to run programs specifically designed with Java technology.


Does the iPod use Java programming?

The iPod uses Objective-C as its programming language. You may install an additional app that can run Java on your iPod device, however.


Major difference between c and java?

Java is object oriented, C is not...


Is java is high level language?

yes, java is high level language because to run it we requires jvm interpreter. In case of c language there is no need to interpret it...