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 to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is static memory allocation?
how to capitalise first letter of each word in a given string?
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
Is it possible to have a function as a parameter in another function?
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
Write a program to print factorial of given number without using recursion?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
writw a program to insert an element in the begning of a doubly linked list
What is the use of a ‘