Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (55.6k points)
Can anyone explain what is platform-independent and why java is a platform-independent platform?

1 Answer

0 votes
by (119k points)

A programming language is called platform independent if that program can be run on any platform (operating system). Java is platform-independent because the same java program can run on any operating system.

If you write a code in Java, then the program will be sent to the compiler for compilation. The compiler creates a .class file that is readable for JVM(Java Virtual Machine). Each operating system will have different JVMs, these are responsible for Java to be a platform-independent otherwise java is a platform dependent.

If you are interested to learn Java, I would suggest this Java Certification program by Intellipaat.

You can watch this video on Java tips and tricks:

Related questions

0 votes
1 answer
asked Jan 14, 2020 in Java by angadmishra (6.5k points)
0 votes
1 answer
0 votes
1 answer
asked Feb 19, 2021 in Java by Jake (7k points)
0 votes
1 answer
asked Feb 9, 2021 in Java by dante07 (13.1k points)

Browse Categories

...