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
Explain the available thread states in a high-level?
What is a class reference?
How to make a class or a bean serializable?
Can we convert integer to string in java?
What are the 4 types of research methods?
Is namespace same as package in java?
What’s the difference between callable and runnable?
What is use of arraylist in java?
What is finalize()? Is finalize() similar to a destructor?
What are white spaces in java?
What is a conditional statement explain with example?
Which list is sorted in java?
What is the use of list in java?
What is method in research paper?
What are the restrictions imposed on method overriding?