how can you say that java is independ language

Answer Posted / pravallika

every one say that java is independent language.we have develop some java program to understand how java is platform independent.
public class Add{
public static void main(String []ar){
int a=10;
int b=20;
int a=a+b;
}
}
save the above program by Add.java
to run this program first we have to compile the program by using javac Add.java.after compile the program it generates Add.class file.Generally .class file contains javainstructions.we can not run the .class file directly on to the processor.so in this we require some virtual machine.so we have to instal jvm.To give the .class file input to the jvm.The jvm converts java instructions into the processor dependent instructions.so jvm is a dependent language.Wiothout jvm we will not able to run our java program.so in this way we say that java is independent language.

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is double word?

531


When should I use stringbuffer?

568


what is instanceof operator used in java?

589


What is jpa specification?

537


Can there be an abstract method without an abstract class?

537






What is the difference between private & public & friendly classes?

547


What is a stack class in java ?

609


What is meant by distributed application? Why are we using that in our application?

545


How are java objects passed to a method and what are native methods?

590


What is strings in java?

585


Tell me about different OOPS concepts.

589


How to provide security in java

1802


What is fail first in java?

567


How many arguments can a method have java?

540


Is a string literal?

521