How java is platform independent?

Answer Posted / shobhit sachdeva

A language is platform independant if it satisfies the
following 3 conditions :

1. It is compiled in a platform neutral manner i.e. object
code obtained after compilation doesn't contain any
Operating System specific information and doesn't follow
O.S. specification formats.

2. Language provides its own runtime environment for
execution of its applications.

3. Language provides comprehensive library to act as an
interface for O.S. services i.e. applications developed in
the language doesn't directly reference any O.S. specific
functionality.

Java follows all these conditions.

Is This Answer Correct ?    24 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between intermediate and terminal operations in java8?

568


What Is Query Throttling in java?

564


Explain the features of java?

595


Why javac is not recognized?

526


Is final static java?

550






What is the structure of java?

508


What are the important features of Java 9 release?

538


what is session in java?

753


Is string passed by reference in java?

548


What are the three best choices for a development environment?

607


What is the purpose of garbage collection in java, and when is it used?

565


What is static synchronization?

575


How do you reverse a word in java?

529


Can we execute a program without main() method?

535


What is the syntax and characteristics of a lambda expression?

558