Computer Science, asked by Anonymous, 1 year ago

CONTENT QUALITY REQUIRED.............


why java is platform independent????

write a program to design your own game by using BufferReader and InputStreamReader....




Anonymous: if confussion... both answer are brainlist type
Anonymous: whom i choose
siddhartharao77: Ur wish.

Answers

Answered by siddhartharao77
17
Short note on platform independent:

Definition:

Platform independent means Writing code on one platform and executing the code on another platform.

What makes Java different from other technologies:

In c++, When a source code is compiled, It is converted into a .exe file. This .exe file will not be able to run on multiple platforms. That means it is platform dependent.

In Java, When a source code is compiled, it is converted into a .class file. It contains bytecode instructions. This .class file will be able to run on multiple platforms. That means it is platform independent. 

Why java is platform independent:

The code which we compile gets converted into a bytecode. It is present in a .class file.The Java virtual machine takes the generated bytecode and then executes the program.


Here are the things you should know about JVM:

(1) JVM Stands for java virtual machine.

(2) It provides Interpreter + JIT(Just-in-time) compiler.

(3) With which we can run Java bytecode by converting them into current OS machine language.


Characteristics of Java - Write Once, Run Everywhere(WORA).



It's not that easy to create a game in java.

siddhartharao77: :-)
Anonymous: Awosome!!
Anonymous: but program???
siddhartharao77: Bro.. We cannot write program here.
Anonymous: well i m sis.... np bhaiya
Anonymous: but i want on this if there is any link plz send
siddhartharao77: Sorry Sis. It requires 5000+ characters for me to write.. Already 300+ characters are over for the above answer.Moreover it will take 3 to 5 days to design a game.
Anonymous: words fall.... np no need bhaiya
Answered by prathamesh1855
3
Hey!☺️

A programming language or technology is said to be platform independent if and only if which can run on all available operating systems with respect to its development and compilation. (Platform represents Operating System).

Java is a platform independent programming language, Because when you install jdk software on your system then automatically JVM are installed on your system. For every operating system separate JVM is available which is capable to read the .classfile or byte code. When we compile your Java code then .class file is generated by javac compiler these codes are readable by JVM and every operating system have its own JVM so JVM is platform dependent but due to JVM java language is become platform independent

◆Java is platform independent but jvm is platform dependent.


Anonymous: nice answer prathmesh
Anonymous: helpful
prathamesh1855: mark as brainliest if helpful
Similar questions