जावा एक प्लेटफार्म स्वतन्त्र भाषा क्यों है?
आदर्श उत्तर
जावा (Java) एक प्लेटफॉर्म-स्वतंत्र भाषा क्यों है?:
- जावा कंपाइलर सोर्स कोड को मशीन-विशिष्ट कोड के बजाय 'बाइटकोड' (.class फाइल) में कंपाइल करता है। यह बाइटकोड किसी भी ऑपरेटिंग सिस्टम पर स्थापित जावा वर्चुअल मशीन (JVM) द्वारा निष्पादित (Execute) किया जा सकता है ("Write Once, Run Anywhere - WORA")।
In English (Question & Model Answer)
Why is Java a platform independent language?
Why Java is a Platform-Independent Language:
- Java source code is compiled into an intermediate, architecture-neutral Bytecode (.class file) rather than native machine code. This bytecode runs on any operating system equipped with a compatible Java Virtual Machine (JVM) ("Write Once, Run Anywhere").