answersLogoWhite

0

Java is portable because it does not compile machine level code, like most compliers, but instead makes bit level code. Because of this, to run a Java program all you need is an interpreter on your platform (be it a web browser, operating system, or cell phone) to run the code.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
More answers

Java is a programming language developed by Sun Microsystems. It can be used across different platforms such as PCs, mobile phones, games consoles etc.

It is portable, at the object (or byte code) level, because it runs on a virtual machine that performs the same operations no matter what computer or operating system it is running on. Java Virtual Machines, or Java Run-Time Environments, do have different versions, and portability depends on having a compatible version installed on the target machine.

User Avatar

Wiki User

15y ago
User Avatar

AnswerAnswerIt means that Java can run on nearly every type of hardware and operating system.

Java is known as a "portable language" because Java code can execute on all major platforms. What's more, once you've compiled your Java source to "byte-code" .class, those files can be used on any Java-supported platform without modification, unlike many other languages, which require compiling "machine code" for each platform, e.g. a separate ".exe" for 32-bit vs 64-bit environments.

Another meaning of "portable", used mainly in Windows environments, means that the Java run-time environment can be run from any arbitrary location in your filesystem and does not need to be "installed", that is, have important information stored in the Windows registry. This is also true for most Java applications, and enables them to be run from different drive letters, via for example an external storage device like a USB flash drive from any computer without having to install the application first.

User Avatar

Wiki User

13y ago
User Avatar

Java is portable in the sense that it is not specific to any one operating system. Any platform can execute Java software assuming that platform has a JVM.

In a more literal sense, Java also offers some convenient ways to port software - packages and JAR files for example.

User Avatar

Wiki User

15y ago
User Avatar

java is a portable language i.e. it can be moved from one platform to other and can be executed there.java program is compiled which creates a .class file.this file now needs jvm to run it.jvm is nothing but any operating system with interpreter to read this byte code.a java .class file can be run on any o.s.......so, we can say java is machine independent.

User Avatar

Wiki User

14y ago
User Avatar

Because it is. Once you write a Java program, it can be run anywhere where a Java Virtual Machine, that is, the Java runtime environment, is installed - and this is available for free, for many different platforms.

User Avatar

Wiki User

12y ago
User Avatar

In theory any device that runs Java, can run any java program, regardless of what the device is. There's no need to recompile, reinterpret, for a different device. So it's a portable language, the programs can be ported effortlessly.

User Avatar

Wiki User

12y ago
User Avatar

Java program is executed by the JVM.

The JVM prevent java code from generating side effects outside of the system.

Safety is also enhanced by certain restrictions that exist in the Java language.

C. Interpreter are slower than Compiler

Java Code is Executed by JVM (interpreter).Other programming language uses compiler which can create executable code much faster then why we are using Interpreter.

When a program is interpreted, it generally runs slower than the same program would run if compiled to executable code.

In Java Compiler will generate ByteCode which is highly optimized.

Thus running highly optimized code using interpreter makes execution of java program faster.

User Avatar

Safren Brown

Lvl 4
4y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What does it mean to say that Java is portable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Would you select c plus plus or java in 11 class?

Its really a matter of opinion. I prefer C++ to Java but that doesn't mean C++ is always better than Java. C++ can be rather hard to learn if you are new to it but it is a very rewarding language. On the other hand, Java is very portable and is used in just about all Android phones (I don't know enough to say whether or not all of them use java.) Anyway, if it is system development or game development you are going for, C++ is a great choice, providing low level access to the computer and providing fast speed if the code is written well. Java is a good portable language that is compiled to computer code using the Java Virtual Machine which compiles it to computer readable code and then runs which makes it portable. In the case of Java, mobile phone apps, web apps and games (most well known being Minecraft) are available to you. It all depends on what you want, hopefully with the information I have give you you can make and informed decision.


What is subroutine in java?

Subroutine mean what (in java)?


Java full from?

Java is not an abbreviation. Java does not expand itself into anything. It is a programming language that is portable, platform independent and object oriented. It is used widely in computer software and in enterprise class applications all over the world.


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


How can you make a graphics program portable?

Any program can become portable (if that means multi-platform) by rewritting in a programming language like Java and including the jvm with the program First, use a portable programming language and associated portable libraries. Java is one, others are C/C++, FreeBASIC, The suite of GCC when coupled with Cygwin. There are many portable graphics libraries to use. A few are: Simple Direct Media Layer (Video, Audio and Input) OpenGL 2d & 3d Graphics Included with almost ALL systems MESA (A layer on top of OpenGL)