Java is called platform independent because of Java Virtual Machine. class(Bytecode) file, and that file can be run in any OS, but JVM should have in OS because JVM is platform dependent. JVM's work can be explained in the following manner It is the medium which compiles Java code to bytecode which gets interpreted on a different machine and hence it makes it Platform/Operating system independent.Bytecode is an intermediary language between Java source and the host system.Bytecode is the source code that can be used to run on any platform. When we compile a Java program, then bytecode is generated.Mostly in other Programming Languages, compiler produce code for a particular system but Java compiler produce Bytecode for a Java Virtual Machine.JVM is the engine that drives the Java code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |