Why is Java platform independent?

AnswerBot
2y

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

Anonymous
1y

Because we can write java code in one system run on another system.

Anonymous
1y

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.

Anonymous
2y

_Because it uses a virtual machine .

_The java programming languages and all all's

are compiled into bytecodes.

_Bytecodes are effectively platforms _independent .

Anonymous
2y

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.

Anonymous
2y

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

Rajesh Behera
2y

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

ROBINSH KUMAR
2y

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

Nayineni Sudarshan
2y

Java can be run on multiple platforms it runs anywhere

Anonymous
2y

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).

Anonymous
2y

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.

Anonymous
author
2y
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
Select
Add answer anonymously...

Cognizant Programmer Analyst Trainee interview questions & answers

A Programmer Analyst Trainee was asked 1w agoQ. Explain the OOPs concepts with examples.
A Programmer Analyst Trainee was asked 2mo agoQ. Tell me about inheritance with an example.
A Programmer Analyst Trainee was asked 2mo agoQ. Write a program to determine if a given year is a leap year.

Popular interview questions of Programmer Analyst Trainee

A Programmer Analyst Trainee was asked 1w agoQ1. Explain the OOPs concepts with examples.
A Programmer Analyst Trainee was asked 2mo agoQ2. Tell me about inheritance with an example.
A Programmer Analyst Trainee was asked 2mo agoQ3. Write a program to determine if a given year is a leap year.

Top HR questions asked in Cognizant Programmer Analyst Trainee

A Programmer Analyst Trainee was asked 5mo agoQ1. Can you tell me about your project?
A Programmer Analyst Trainee was asked 9mo agoQ2. Are you willing to relocate for this job role?
A Programmer Analyst Trainee was asked 10mo agoQ3. Are you willing to work night shifts?
Cognizant Programmer Analyst Trainee Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits