Pergunta de entrevista da empresa Tata Consultancy Services

Is Java really platform independent? I

Respostas da entrevista

Sigiloso

13 de out. de 2017

Yes java is really platform independent because java program can easily move from one machine to another. In another way we can say that java program work on any platform(os) without modifying the source code.

1

Sigiloso

19 de jan. de 2018

Yes, java is an platform independent because. ..when we compile .java file we get .class it contains byte code equivalent to source code. Byte code is machine independent. So we can run this byte code in any machin with "x" operating system and "y" processor. That's why java is platform independent. JVM is platform dependent