Why is Java a platform independent language?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Why is Java a platform independent language?
I guess I can try to answer this and place my 0.02 cents in. To use Java programming it runs on Java platforms that has few have few implementation dependencies. Those programs that support Java. The java programming runs on Java platform and with other platforms without the need to recompile the class files. This Java being an independent platform language must interact with other programs that works with Java. It is independent because the language is a high level general purpose programming language. Much like the way Basic programming was in the early days of Microsoft Disk Operating System was used. Before Windows was developed and is built on C++ programs. Java platform has a basic purpose in mind. And works well with other platforms. UNIX, C++, Fortran. That's one reason or answer I can give.
Imagine you have a friend who speaks different languages. You want to tell them a story, but you don't know their language. So, instead of speaking directly to them, you write down your story in a special language that your friend understands. This special language is like Java bytecode. Then, you give your story to an interpreter who knows both your special language and your friend's language. This interpreter translates your story into a language your friend understands. In this analogy, your story is like the Java program, the special language is bytecode, and the interpreter is the Java Virtual Machine (JVM). Because of this process, Java programs can run on any device with a JVM, just like your story can be understood by your friend, no matter what language they speak. If you want to learn more about Java and its platform-independent nature, you can visit our website https://www.programminghomeworkhelp....va-assignment/