How java is platform independent?

Answers were Sorted based on User's Feedback



How java is platform independent?..

Answer / tulasi

java is platform independent bec we written the source code
in java language and we produce the complied source code i.e
class file is in byte code format ,it does not depend on any
platform where u will execute ,so, we called this as
platform independent.The JVM is plat form independent it
depends on the platform ,it will change the class file into
perticular native code.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / rajiya

java platform independent because you can use any time and
any place and also different operating sysetem use.

we not required particulat platform .java programe
required compile time java virtual machine.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / hh

It means you can run the program on any operating system
having installed just the JVM installed.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / nk saini

java is platform indepandent because--------


ur choice are
1.it creates sourse file
2.it creates object code on compilation
3
diff version of compiler
4.diff software for hardware

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / piyush raghuvanshi

If JVM is platform dependent. Then how can we say that Java
is plate from Independent language....???

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / sheetesh kumar dubey

hiii...
Plateform independent means.
That means making program in any operating system than run and copy program from those operating system and pest another operating system if program will be successfully run that is called plateform independent.
so java is called plateform independent

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / dubeysunny74@gmail.com

any language is plateform independent when it is hordware independent(processor) and software independent that language is called plateform independent.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / sushil vashist

Java was designed to not only be cross-platform in source
form like C, but also in compiled binary form. Since this is
frankly impossible across processor architectures Java is
compiled to an intermediate form called byte-code. A Java
program never really executes natively on the host machine.
Rather a special native program called the Java interpreter
reads the byte code and executes the corresponding native
machine instructions. Thus to port Java programs to a new
platform all that is needed is to port the interpreter and
some of the library routines. Even the compiler is written
in Java. The byte codes are precisely defined, and remain
the same on all platforms.

The second important part of making Java cross-platform is
the elimination of undefined or architecture dependent
constructs. Integers are always four bytes long, and
floating point variables follow the IEEE 754 standard for
computer arithmetic exactly. You don't have to worry that
the meaning of an integer is going to change if you move
from a Pentium to a PowerPC. In Java everything is guaranteed.

However the virtual machine itself and some parts of the
class library must be written in native code. These are not
always as easy or as quick to port as pure Java programs.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

Answer / sushil vashist

JAVA is not fully platform independent, as it depends on the
corresponding JVM which in turn is platform dependent.

Is This Answer Correct ?    0 Yes 0 No

How java is platform independent?..

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

More Core Java Interview Questions

Can we iterate through collection using for loop?

2 Answers   Rolta,


What is data object example?

0 Answers  


Can a class be declared as static?

0 Answers  


What is a method in coding?

0 Answers  


What is java util?

0 Answers  






How to compare two strings in java program?

0 Answers  


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

0 Answers  


printstream class method println() is calling using System class and its static object out .how it is explain any one in detail with example ?

1 Answers   TCS,


What is AppletStub?

1 Answers  


What are the types of arrays in java?

0 Answers  


What is string variable?

0 Answers  


what is platform

2 Answers   i3 Solutions,


Categories