how we can say java is platform independent, while we
require JVM for that particular Operating System?
Answers were Sorted based on User's Feedback
Answer / nagarjuna reddy
Because of JVM java became platform independent.after
creating object file,the object file is given to JVM which
consists of 200 instructions called "byte code instructions".
JVM will convert the object file instructions into machine
code instructions that are understandable to particular
processor on which instructions have to be executed.so jvm
converting the instructions depending upon the Os &
processor,but java compiler will not creating an object file
depending upon the current processor.
so this object file will execute at any where irrespective
of the processor or operating system.
so we can say that JVM is platform dependent,why because it
has to create machinecode inst's of that(current) processor
or OS.
Java is platform independent, why because object file
created by java compiler will execute on any platform
because of JVM.
| Is This Answer Correct ? | 22 Yes | 2 No |
Answer / seema choudhary
Java is platform independent b'caz java compiler convert the source file into the Byte code or object code file then JVM(Java Virtual Machine) convert the file into the machine language.
object code file will execute on another machine or any platform by using the JVM.
| Is This Answer Correct ? | 3 Yes | 0 No |
write a program for even numbers?
hi any body pls give me company name interview conduct "c" language only
How to implement variable argument functions ?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
without using control structures and control structures find the max and min of given 2 nos
write a program to remove duplicate from an ordered char array? in c
Write a program to give following output..... ********* **** **** *** *** ** ** * * ** ** *** *** **** **** *********
can we declare a function in side the structure?
What is structure padding & expalain wid example what is bit wise structure?
What do you mean by team??
In the following code segment what will be the result of the function, value of x , value of y { unsigned int x=-1; int y; y = ~0; if(x == y) printf("same"); else printf("not same"); } a) same, MAXINT, -1 b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1 d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT
What is sorting in c plus plus?