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

If try block is successfully executed, Then Is Finally block executed?

1085


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

1149


What is the basic concepts of OOPS?

1198


When do I need to use reflection feature in java?

1080


Is void a keyword in java?

1017


Can you inherit from an abstract class java?

994


Can memory leak happen java?

1005


What is intern method in java?

1080


What is object in java?

986


Does treeset use compareto?

978


Is arraylist sorted in java?

1003


What is default switch case? Give example.

1007


What is the right data type to represent a price in java?

960


What are the different types of garbage collectors in java?

1141


Explain listiterator and methods in listiterator?

1021