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 reverse a linked list recursive java solution?

535


What are thread priorities and importance of thread priorities in java?

628


Why are data types important?

543


what are three ways in which a thread can enter the waiting state? : Java thread

581


In the below example, how many string objects are created?

561






Is oracle charging for java?

550


Can long be null in java?

546


Why deletion in linkedlist is fast than arraylist?

537


What are the basic concepts of OOPS in java?

570


What is Java Annotations?

557


What is the purpose of a parameter?

531


What methods are used to get and set the text label displayed by a button object?

558


How do you declare an array that will hold more than 64KB of data?

648


Define an enumeration?

615


What is default exception handling in java?

577