how can you say that java is independ language
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mayank sharma
When you program in any programming language, you compile your
program before executing it. Compiling your program means
you've converted your source code ( text ) into machine code(
which can be...
Is This Answer Correct ? | 1 Yes | 5 No |
What is jee6?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Explain hashset and its features?
What is Yield() method when we r using this ? tell exactly
What is the difference between normal report & matrix report?
What is singleton service?
What is the range of the char type?
What is a method in java?
Is alive and join method in java?
How many types of operators are there?
How does sublist works in java?
What are the new features in java 8? Explain