Answer Posted / nashiinformaticssolutions
You're absolutely right! Java is often described as a platform-independent language due to its use of bytecode. When you compile Java source code, it gets transformed into bytecode (.class files), which can run on any system that has a compatible Java Virtual Machine (JVM) installed.
This architecture allows developers to write code once and run it anywhere, as long as the appropriate JVM is available on the target platform. While the JVM itself is platform-dependent (since it needs to be tailored to the specific operating system), the bytecode remains consistent across platforms, enabling this cross-platform capability. This design is a key reason for Java's popularity in various environments, from web applications to enterprise software.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between fail-fast and fail-safe?
What best practices should you follow while writing multithreaded code in java?
How do you avoid global variables?
How to create a custom exception?
What is the disadvantage of java?
How does arraylist size increase in java?
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
How does arraylist work in java?
What is the difference between sleep and wait in java?
Mention some features of java?
Explain constructors and types of constructors in java.
What is size () in java?
Can I override protected method in java?
Is singleton set an interval?
what is interface in java? Explain