How java is platform independent?
Answers were Sorted based on User's Feedback
Answer / rajesh pradhan
Whenever we compile the java source code it becomes
transform into an intermediate code(known as "Byte
Code"),unlike other languages,"ByteCode"(.Class file) is
platform independent code.Then u can run the Byte Code on
any Platform(OS)either it is Linux,Mac or Windows..But d
reality is that the ByteCode(.class file)is run by the Java
Interpreter which in turn invokes the JVM(Java Virtual
Machine) which is differ for the different OS. And the
output of JVM is machine dependent code..[AND THE MOST
SECRET:--JAVA IS NOT PLATFORM INDEPENDENT IF THERE IS NOT
THE DIFFERENT JVM FOR DIFFRENT OS...AND PLUS WE NEED NOT TO
INSTALL JVM MANUALLY ..IT IS INBUILT IN ALL OS..]
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chidananada p.d
java language consists of a special program to convert one
understanding form of one operating system to another form
of another operating system,So we can say java is platform
independent language.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bipin kumar behera
1.java solves the problem of platform-independence by using
byte code. The Java compiler does not produce native
executable code for a particular machine like a C compiler
would. Instead it produces a format called byte
code. Java byte code written in hexadecimal.
2.This format is same in every operatingf system like Solaris workstation,linux.After comilation the interpreter reads the
the byte code and translate according to the host machine.
3.Byte code is interprted in JVM.which avalibale in all operating systems.that we install.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abnish kumar rajput
Java is called platform independent language because of its
compiling and interpreting concept.Java has both features
means compilation and interpretation of a program.Java first
compiles a source code into bytecodes(Magic Codes) and then
these bytecodes can easily be converted according to that
particular machine using different OS.
Is This Answer Correct ? | 6 Yes | 7 No |
Answer / gangadhar
when java source file is compiled it creates a .class file
which is a bytecode file. We can just use this .class file
to execute our program without the need of the source file.
If i want to excute the program in another system , i can
do so just by using .class file(i.e. i donot need the
source code).. but the system should have jvm.
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / brajesh nath tripathi
java is platform independent because it follows the three
basic rules
According to these rule there should not any coupling
between operating system and java program /application
1:-Application developing time coupling
JAVA never use any operating system function in developing
java application
2 compilation time coupling
that is only Java Run Time environment is responsible to
load and compile the any java program
hence there is no role of operating system
3:-Execution time coupling
in java Run Time environment JVM has responsibility to
execute the java program hence there is no role of OS
since java follow these three rule hence java is a platform
language
Is This Answer Correct ? | 5 Yes | 9 No |
Answer / brajesh tripathi
java is a platform independent language.there are following
reasons according to which we can say that is a pf
independent language
1:-Application Time Coupling
java use its own class libraries to develope an application
That is there are no connection between java program and the
libraries of that specific operating system.
2:-Compilation Time Coupling
that means there is no role of operating system in
compilation of java source code
3:-Execution Time Coupling
that means there is involvement of operating system in
execution of java source code
java cares all three rules of independency bz
1 java source code is compile by specific compiler and
loading and execution of java program is govern by JAVA RUN
TIME ENVIORNMENT.
same after compilation java byte code is formed and that
code executed by JVA via interpretor.
So we can say that java is pure platform independent language.
thanx
Is This Answer Correct ? | 4 Yes | 8 No |
Answer / pavi
java is a platform oriented language ,because it' not tied
to any os and hardwares. it can run any os at any time.
Is This Answer Correct ? | 22 Yes | 33 No |
Answer / padam jeet singh
Java is plateform independent language because it is not
tied to any hardware or any operating system. The program
made in java can be run anywhere or any machine.
Is This Answer Correct ? | 44 Yes | 63 No |
Answer / jitesh singh
java is platform independent due to the concept of J.I.T
after compilation of java source code filename.class file
prepared by the J.V.M is called bytecode but j.v.m is
platform dependent that bytecode is further interpreate by
J.I.T in the machine code
by this process java becomes platform independent
Is This Answer Correct ? | 19 Yes | 44 No |
What are the differences between stringbuffer and stringbuilder?
Name the packages in JDK?
Is an integer an object?
What is bufferedreader in java?
What access modifiers can be used for class ?
Can you pass functions in java?
Explain about GridBag Layout?
What is jit compiler ?
What is the use of TL?
why java does not support mulitple inheritance directly?
why java does not contain pointers?
What are operators and its types?