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 Java is Platform Independent?


Why Java is Platform Independent?
Why Java is Platform Independent? (2 min 37 sec)
April 23rd, 2012 at 03:16 AM
Uploaded by atulpalandurkar

Rating: 0 after 0 votes

Java Tutorials
Favorites: 0 - Views: 766
Comments: 0



Tags:
There are two steps required to run any java program i.e.
(i) Compilation &
(ii) Interpretation Steps.

Java compiler, which is commonly known as Javac is used to compile any java file. During compilation process, java compiler will compile each & every statement of java file. If the java program contains any error then it will generate error message on the Output screen. On successful completion of compilation process compiler will create a new file which is known as Class File / Binary Coded File / Byte Code File / Magic Code File.

Generated class file is a binary file therefore java interpreter commonly known as Java is required to interpret each & every statement of class file. After the successful completion of interpretation process, machine will generate Output on the Output screen.

This generated class file is a binary coded file which is depends on the components provided by java interpreter (java) & does not depends on the tools & components available in operating system.

Therefore, we can run java program in any type of operating system provided java interpreter should be available in operating system. Hence, Java language is known as platform independent language.

- Atul Palandurkar
Email - atul.palandurkar@gmail.com
Blog - atulpalandurkar.wordpress.com
Submit Comment


  1. This media has no comments...