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
What is the purpose of format function?
What is adapter in java?
Define immutable object?
Why java doesn’t support multiple inheritances?
List some features of the abstract class.
What do you mean by buffering?
What is singleton class and how can we make a class singleton?
What is thread safe in java?
Is java 11 paid version?
What are different types of inner classes ?
How do you find the absolute value?
Is string is a keyword in java?
What is variable declaration and definition?
How does enum work in java?
What are static variables and functions?