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 / abc

Platform Independence means a program can run on any OS and
h/w architecture.
To achieve this, JAVA adapted d concept of byte code, that
is converted from source code, n this byte code can be
executed on any machine in d world.

To clearly understand, lets take C compiler as an exaple.
In C, the source code can be compiled in differnt OS like
Windows, DOS, Linux, etc. by using differnt compilers for
differnt OS ,BUT in migrating from one OS to other, the OS
added some features of its own n d result would be little
bit or even completely changed , e.g., if we
use "graphics.h" in C, it will not run on Win7....
thus C is'nt platform independent.

n Remind that Platform Independence also includes that, a
program can run on any H/W architecture i.e. on any
processor...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is appletviewer?

1037


Difference between error and exception

6060


State the merge-sort principle and its time complexity.

979


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

1114


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1980


What is a package in java? List down various advantages of packages.

1279


What is implicit object in java?

1080


What is polymorphism in java? What are the kinds of polymorphism?

1072


Define how does a try statement determine which catch clause should be used to handle an exception?

1162


What is abstraction in java?

1089


Can a abstract class be declared final?

999


When object is created and destroyed?

1103


What is java lang object?

970


Difference between serialization and deserialization in java?

1140


What happens if I remove static from main method?

1010