Can you support java is platform independent?.

     VC++ exe file needs Win to run,
     JAVA Byte code needs interpreter to run.

   In both cases we need extra software support then how Case 2 is advantageous?.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Win is O/S, which is the "platform". :-}
The interesting thing about Java is that you don't need a whole operating system to run it. And, to underscore that, the JVM (the byte code interpreter) has been ported or recreated for numerous systems. It's not perfect (yet), but by and large a Java applet will load and run on any machine with a browser.

So while a VC++ program will only run on a windows machine, a Java program can run on windows, ce, linux, unix, mac, palm top, etc. etc. The potential number of targettable machines is much higher for a Java program.
Also, java doesn't need an actual, full OS...bytecode can run on a TV, refrigerator, etc.
I'm currently working on application for GPS systems, and I test it on my computer! Because it will work the same on their hardware as on mine!
  After the compilation,you will get class files in Java which is nothing but byte code.This byte code is suitable for any platform.Once you have a byte code you can run that code in any platform provided JVM for that platform needed.
   JVM can be embedded in OS,browser.So whenever you are executing the java program JVM will be embedded into your OS and it will start the execution.First it will convert the bytecode into native machine instruction then it will run.Thats what java is very slow compared to C,C++.
  I  think when you have exe of C++ program which you created in windows cannot run on other OS.But in java if you have the byte code you can run it on any platform which should have JVM.
   I hope this cleared your doubt.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.