Why is java platform independent?
Java is platform independent due to its bytecode and JVM.
Java code is compiled into bytecode which is platform-independent.
JVM (Java Virtual Machine) interprets the bytecode and executes it on any pla...read more
Because we can write java code in one system run on another system.
Java does not compile into machine code, it compiles into byte code and it will run or interpreted using JVM( java virtual machine). Which makes java platform independent.
_Because it uses a virtual machine .
_The java programming languages and all all's
are compiled into bytecodes.
_Bytecodes are effectively platforms _independent .
Java is platform-independent because it uses a virtual machine.The virtual machine takes care of the differences between the bytecodes for the different platforms.
Java is called Platform Independent because programs written in Java can be run on multiple platforms without re-writing them individually for a particular platform, i.e., Write Once Run Anywhere (WOR...read more
Java compiler converts the java code into byte code. The JVM then converts the byte code into its machine code. Since Java always produce the byte code, it does not matter on which platform it is run....read more
Java is first compiled into .class file called bytecode which further get interpreted, this compiled bytecode can be interpreted on any platform, Thus this .class file called bytecode makes java platf...read more
Java can be run on multiple platforms it runs anywhere
because programs written in Java can be run on multiple platforms without re-writing them individually for a particular platform, i.e., Write Once Run Anywhere (WORA).
You can write Java programme in any platform like window, Linux , Mac and after that the we can run this in another platform by jvm, so jvm is platform dependent but Java file is platform independent.
Top Cognizant Programmer Analyst Trainee interview questions & answers
Popular interview questions of Programmer Analyst Trainee
Top HR questions asked in Cognizant Programmer Analyst Trainee
Reviews
Interviews
Salaries
Users/Month