Lets see it with creating source file , compile source file into .class file & run the .class file.
See , you have a helloworld.java file.
now compile it with java compiler javac. This will create a helloworld.class file. By opening this .class file in any text editor will shown as below.
Now run the code with java ,
java helloworld
The way of Other languages works :
- write source code
- port source code in different platform
- compile source code in platform specific binaries or machine code
- binaries executes on a single platform
On other hand java works:
- write source code
- compile source code
- run any platform
The
"javap -c" command disassembles a class file. Disassembling done by
Disassembler which converts machine language to assembly language.
No comments:
Post a Comment