How java is platform independent?
Answer Posted / 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 |
Post New Answer View All Answers
What is equlas() and hashcode() contract in java? Where does it used?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Why are the objects immutable in java?
What are the different ways of implementing thread? Which one is more advantageous?
Why singleton is not thread safe?
What is json parser in java?
What is the use of static class?
What is anagram word?
Can you override static methods?
Is integer passed by reference in java?
What is the maximum size of a string in java?
Explain the difference between extends thread vs implements runnable in java?
What is the internal implementation of set in java?
Can we increase array size dynamically in java?
Explain importance of inheritance in java?