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...

How java is platform independent?

Answer Posted / ranganathkini

In the classic sense of software development, programs are
coded in higher level languages such as C/C++, then that
source code needs to be compiled into native machine
language specific to that platform so that the program is
made executable.

Java compiler on the other hand does not compile Java source
files into native machine language, instead it compiles the
source code into bytecodes. These bytecodes are platform
independant i.e. in other words specific to to the Java
Virtual Machine specification. This enables platform
independant compilation.

When the bytecode compiled programs are executed thru the
Java interpeter, it converts those bytecodes into native
machine code and executes them thru the JVM which is
specific to host environment it is running on. This enables
platform specific execution.

Is This Answer Correct ?    380 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of thread priorities ?

1050


What is the unit of plancks constant?

1003


What is the purpose of abstract class?

982


Explain 5 features introduced in jdk 1.7?

978


Can we create a class inside a class in java?

1015


What is the difference between a field variable and a local variable?

1042


What is nextint java?

992


Can set contain duplicates?

964


What are the restrictions that are applied to the java static methods?

945


List two java ide’s?

998


What is java console application?

954


What is included in core java?

1010


What is an array length?

868


Will the jvm load the package twice at runtime?

1055


What is thread safe java?

878