Why Java is called as purely platform independent..?
Explain briefly..dont Give regular answers
Explain with your own example..?
Answers were Sorted based on User's Feedback
Answer / satishkumar vishwakarma
The java is platform independed because of its bytecode.
When we compile our source file it is converted into .class
file. This .class file containts bytecode which is executed
by JVM whih is a runtime environment for java. Now
this .class file can be run in any environment with the
help of jvm. and jvm convert bytecode into native code.
That's why java is called platform independed.
Is This Answer Correct ? | 96 Yes | 9 No |
Answer / rajashekar
Ya of course the above answer is currect but remember here
Platform independent means PROCESSOR Independent..that mens
irrespective of processor the JVM convert the Java
Instructions into processor dependent Instructions..
Thats why Java is so called Platform Independent..
Example:
If you are using Intel Processor the machine code
instructions are different like ipush,istore etc like if you
are using AMD processor the instructions will be a push,a
add etc ....
here JVM converts the java Instructions to Processor
understandable Instructions..
so the Programs which were compiled on any Processor can run
on no.of times through out the world on n no.of Processors..
Thank You....
if any suggestions mail to rajashekar.654@gmail.com
Is This Answer Correct ? | 30 Yes | 7 No |
Answer / chandrasekhar
we know that c,c++ are platform dependent the reason is
c,c++ directly communicate with OS.The .exe file of c,c++
contains 4 types:-1.)program
2.)libraries
3.)processor
4.)OS
so c,c++ are platform dependent
Java prpogram connect with JVM and then interact with OS
The .class file contains only 2 types:1.)program
2.)libraries
so java is platform independent
Is This Answer Correct ? | 18 Yes | 2 No |
Answer / raji
in java the byte code which is called as plat form independent
so........ it can be ready executed in any platform
and where particuler jvm is plat form dependent.......always
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / ajeet pratap singh
we can say that java is logically platform independent but not technically because as jvm generates the byte codes i.e. .class files ,it is the necessary conditions for a purely platform independent language that the byte code which is generated by the jvm should run on any operating system without any mediator or converter but here interpreters are used to convert those codes acc. to the operating systems used and this is known as jre(java runtime environment). So java is logically platform independent but not technically
Is This Answer Correct ? | 10 Yes | 3 No |
Answer / himanshu daurby
ava 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 .class file 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.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / suraj gupta
We can say that after translating a java program into bytecode helps to make it much easier to run a program in a wide variety of environments. Only the JVM needs to be implemented for each platform. If JVM exists for a given computer, any java program can run on it. Therefor java is platform independent language.
Is This Answer Correct ? | 1 Yes | 2 No |
Answer / waqar ahmed rahuja
Software that can run any Hardware (PC, Mac, and sun space etc). Or Software platform ( Linux, Mac OS, Unix and windows etc). in general, programs written in java language can be executed on practically every platform.
Is This Answer Correct ? | 0 Yes | 2 No |
How to connect to a remote database using Applet?
What is string data?
How variables are stored in memory?
Why java is not 100% object-oriented?
How are observer and observable used in java programming?
why string constant pool in java
What exactly is a .class file?
How do you reverse a string in java?
why Java does not support multiple inheritances?
Is it safe to install java on my computer?
How do you create immutable object in java?
Which methods cannot be overridden in java?