Learn Pain Less
Home
Our Team
Contact
Java
How java is Platform Independent and Portable
Pawneshwer Gupta
January 02, 2015
1 min
Table Of Contents
01
Q. How Java is Porting ???
02
Why java is code safe ???
03
Interpreter (computing) is slower than compiler then why java use Interpreter ???
Q. How Java is
Portable
???
A. Java is portable due to following features :
Output of java code is in
Bytecode
(ie. Non
Executable code
).
Bytecode is highly optimized set of instructions.
Bytecode is
executed
by machine which is Java runtime machine is also call as JVM (
Java Virtual Machine
).
Because output of java is in bytecode so its not possible to modify by malicious programs thats why java is secure.
JVM is an interpreter.
JVM takes bytecode as input and execute it.
Output of java is in bytecode so we need to setup JVM on other platform which makes
java Platform
independent.
When JVM is installed on any system then we can execute any java
program
.
Why java is code safe ???
Java program is executed by JVM.
JVM prevent program from external side effect.
Their are few restrictions in java which increase safety of java.
Interpreter
is slower than compiler then why java use Interpreter ???
Its true that
compilers
are much faster than Interpreters.
But java compiler generate program into bytecodes which is highly optimized.
Execution of that optimized code is much faster than compilers. which makes java program faster even using Interpreters.
Subscribe to our newsletter!
We'll send you the best of our blog just once a month. We promise.
Subscribe
Tags
start
compilers
interpreters
bytecode
Share
0
0
0
0
Pawneshwer Gupta
Software Developer
Pawneshwer Gupta works as a software engineer who is enthusiastic in creating efficient and innovative software solutions.
Expertise
Python
Flutter
Laravel
NodeJS
Social Media
Related Posts
Java
Working with Files, Folders java
Pawneshwer Gupta
March 25, 2015
1 min
Java
Stream, I/O Stream in java
Pawneshwer Gupta
March 25, 2015
1 min
Java
What is Access Modifiers in JAVA
Pawneshwer Gupta
March 24, 2015
1 min
Java
What is default constructor in JAVA
Pawneshwer Gupta
March 23, 2015
1 min
Java
What is Constructor in JAVA
Pawneshwer Gupta
March 23, 2015
1 min
Java
What is the use of super keyword in JAVA
Pawneshwer Gupta
March 22, 2015
1 min
Learn Pain Less
© 2024, All Rights Reserved.
Crafted with
by
Prolong Services
Quick Links
Advertise with us
About Us
Contact Us
Legal Stuff
Privacy Policy
Terms of Use
Social Media
Stack Overflow
Github
Twitter
Facebook
Instagram