Why Java is called as purely platform independent..?
Explain briefly..dont Give regular answers
Explain with your own example..?

Answers were Sorted based on User's Feedback



Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / satishkumar vishwakarma

The java is platform independed because of its bytecode.
When we compile our source file it is converted into .class
file. This .class file containts bytecode which is executed
by JVM whih is a runtime environment for java. Now
this .class file can be run in any environment with the
help of jvm. and jvm convert bytecode into native code.
That's why java is called platform independed.

Is This Answer Correct ?    96 Yes 9 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / rajashekar

Ya of course the above answer is currect but remember here
Platform independent means PROCESSOR Independent..that mens
irrespective of processor the JVM convert the Java
Instructions into processor dependent Instructions..
Thats why Java is so called Platform Independent..

Example:
If you are using Intel Processor the machine code
instructions are different like ipush,istore etc like if you
are using AMD processor the instructions will be a push,a
add etc ....

here JVM converts the java Instructions to Processor
understandable Instructions..
so the Programs which were compiled on any Processor can run
on no.of times through out the world on n no.of Processors..

Thank You....
if any suggestions mail to rajashekar.654@gmail.com

Is This Answer Correct ?    30 Yes 7 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / chandrasekhar

we know that c,c++ are platform dependent the reason is
c,c++ directly communicate with OS.The .exe file of c,c++
contains 4 types:-1.)program
2.)libraries
3.)processor
4.)OS
so c,c++ are platform dependent
Java prpogram connect with JVM and then interact with OS
The .class file contains only 2 types:1.)program
2.)libraries
so java is platform independent

Is This Answer Correct ?    18 Yes 2 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / raji

in java the byte code which is called as plat form independent
so........ it can be ready executed in any platform
and where particuler jvm is plat form dependent.......always

Is This Answer Correct ?    14 Yes 2 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / ajeet pratap singh

we can say that java is logically platform independent but not technically because as jvm generates the byte codes i.e. .class files ,it is the necessary conditions for a purely platform independent language that the byte code which is generated by the jvm should run on any operating system without any mediator or converter but here interpreters are used to convert those codes acc. to the operating systems used and this is known as jre(java runtime environment). So java is logically platform independent but not technically

Is This Answer Correct ?    10 Yes 3 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / himanshu daurby

ava is a platform independent programming language, Because when you install jdk software on your system then automatically JVM are installed on your system. For every operating system separate JVM is available which is capable to read the .class file or byte code. When we compile your Java code then .class file is generated by javac compiler these codes are readable by JVM and every operating system have its own JVM so JVM is platform dependent but due to JVM java language is become platform independent.

Is This Answer Correct ?    0 Yes 0 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / suraj gupta

We can say that after translating a java program into bytecode helps to make it much easier to run a program in a wide variety of environments. Only the JVM needs to be implemented for each platform. If JVM exists for a given computer, any java program can run on it. Therefor java is  platform independent language.

Is This Answer Correct ?    1 Yes 2 No

Why Java is called as purely platform independent..? Explain briefly..dont Give regular answers Ex..

Answer / waqar ahmed rahuja

Software that can run any Hardware (PC, Mac, and sun space etc). Or Software platform ( Linux, Mac OS, Unix and windows etc). in general, programs written in java language can be executed on practically every platform.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

When is finally block not called?

0 Answers  


What is the immediate parent class of the Applet class?

1 Answers  


What is advantage of using threads?

2 Answers   BMC,


Is null a string?

0 Answers  


When will we prefer to use set and list in java and why?

0 Answers  


Have you used any version control ? if so explain about it?

2 Answers  


public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }

0 Answers  


What is module in oop?

0 Answers  


Java support call by reference (pass by reference) ?

1 Answers   HCL,


how to make a un-checked exception as a checked exception one.

2 Answers  


Explain Public static void main?

2 Answers   IBM, Vetech,


What is difference between overloading and overriding?

2 Answers   Accenture,


Categories