Platform vs Operating system

Please someone discuss about Platform
then tell me how it is related to operating system
and then how is Java platform indepentent??

I guess "Platform" is a combination of hardware / operating system, although when we discuss Java we're mostly talking about the operating system (Windows NT, Linux, Solaris...).
Java is considered platform independent because when you compile a Java class it will run unchanged on many platforms. This is because there is a version of the Java Virtual Machine for each platform that interprets the Java bytecode in the class file. In effect, the JVM "translates" the Java code to native platform instructions.

Similar Messages

Maybe you are looking for