answersLogoWhite

0

This phrase describes Java's platform independence. You can write a piece of code on a Windows machine and run it (without making any code changes) on a Mac, Linux, or any other Java-supported platform.

You write the code once and can run it anywhere.

That means that if u write a program in JAVA, then u may run it on any computer which facility is not available in most of the languages.

Then how does JAVA do this?

to understand this, you need to understand how a compiler/interpreter converts a code to an executable file.

When u specify int x; in C/C++,

it creates a memory allocation on your RAM depending upon the processor you have in your computer(32 bt or 64 bit or 16 bit(obsolete)).

but what if your computer has a Intel Pentium (32 bit) and my computer has Intel Core 2 Duo(64 bit)?

the Code fails to execute on my computer if You have created the code in your computer and vice-versa.

But JAVA codes never face these problems as it makes a byte-code

before it makes an executable file.

And this byte-code checks for the processor of your computer first and accordingly sets int x which is most compatible on your Computer.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

If JVM is available on Windows then can you run a program written in Unix?

Yes. One of the fundamental principles of Java is "write once, run anywhere." This means that Java source code can run on any platform for which a JVM exists, regardless of where the original code was developed.


Why java called as platform independent?

Java is called as platform independent because it uses the WORA(Write Once and Run Anywhere) principle. Java programming language is designed to be run under any OS and that is the main advantage of it.


Why java is called write once and run anywhere?

Write once run anywhere: Java is a programming language which has its own virtual machine. When you write a program using the Java language you can use it on any operating system which has Java installed. This is different to previous programs and programming languages as they were written for individual operating systems and needed to be re-written for a different operating system. For example, a while ago on mobiles, all we had was "nokia games" "sony-ericson games" "motorola games" etc.. but now we have "java games" which can run on any mobile as long as the mobile has java installed... It's clever and very handy!


What is WORE in Java?

Write once, run everywhere


What is Re usability in java?

Reusability in Java means that once you write some code, you can use it over and over again - if you write it so that it can be reused. For example, if you write a Enumeration-Iterator adapter, or some code that lets you treat an Enumeration - Java legacy code - as an Iterator - shiny NEW Java code - then you can use it not only in your animal simulation program, but also in your Jacuzzi interface program.


Why to study java and how java came to know?

There are many reasons of studying java It is most popular programming language and according to me best language I ever used. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere"


What is the software that interprets Java bytecode?

The software that interprets Java bytecode is known as the Java Virtual Machine (JVM). The JVM executes the bytecode generated by the Java compiler, allowing Java applications to run on any platform that has a compatible JVM installed. This platform independence is a key feature of Java, enabling the "write once, run anywhere" capability. Additionally, the JVM also provides features like memory management and garbage collection.


Is java fully platform independent?

Java is a platform independent language.After compiling the ".java" file ,that will be converting into the ".class" file,which is a byte code having the capability run on any OS.Basing on the concept byte code java achieving the platform independent,it leads to "Write once run anywhere".


A significant and powerful aspect of the Java language is?

A significant and powerful aspect of the Java language is its platform independence, achieved through the Java Virtual Machine (JVM). This allows developers to write code once and run it anywhere, making Java highly versatile for cross-platform applications. Additionally, Java's rich standard library and strong community support enhance its capabilities, enabling developers to build robust, scalable applications efficiently. Its object-oriented nature also promotes code reusability and maintainability.


What was a inventon in 1995?

In 1995, one notable invention was the Java programming language, developed by Sun Microsystems. Java introduced the concept of "write once, run anywhere," allowing developers to create applications that could run on any device with a Java Virtual Machine. This innovation significantly impacted software development, especially for web applications and mobile devices. Java remains widely used today in various fields, including enterprise computing and Android app development.


Is Java necessary for Mac?

You can indeed run Java on Mac OS. Java is not dependant on the single computer architecture but depends on the JVM (Java Virtual Machine). One of the most powerful features in Java is that it promises WORA (Write Once, Run Anywhere(eg. Mac, Windows, Unix).If you can't run java on your Mac do one of the following:- Go to Apples website -> Support -> Search for "Java for Mac"- Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.**From Oracles website (Java developer)


What is wora?

WORA stands for "Write Once, Run Anywhere," a principle associated with programming languages and platforms that allow code to be executed on multiple systems without modification. This concept is particularly prominent in Java, where code compiled into bytecode can run on any device equipped with a Java Virtual Machine (JVM). WORA promotes cross-platform compatibility, reducing the need for developers to write separate code for different operating systems.