Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why java is platform independent?

Answer Posted / liza

Java compiler compiles the .java file(source code) by
generating the .class file comprising the bytecodes.

Bytecodes are platform independent and can be executed in a
system where JVM is installed.

JVM interpretes bytecodes into machine code depending upon
the underlying OS and H/W combination.

JVM provides a machine interface that does not depend on the
underlying OS and machine H/W architecture, thus making JAVA
as platform independent.

This makes java program as write-once run-anywhere.Only we
need to install compatible JVM, bcoz JVM is platform dependent.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of classes are there in java?

1006


What is the difference between arraylist and hashset in java?

1066


What does index mean in java?

936


Explain throw keyword in java?

996


Is math class static in java?

1055


What are the access modifiers available in java?

1069


Can you run java program without main method?

1023


Why is java so important?

1069


What is java dot?

890


What is charat ()?

897


What is boolean example?

905


Is int a class in java?

951


Which java version is latest?

973


Can we pass null as argument in java?

896


What is called module?

931