Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 string in java?

960


Is empty in java?

992


Is java 9 released?

943


What is the transient keyword?

2015


How many bytes is a string?

1082


Write a java program that prints all the values given at command-line.

968


What is the point of polymorphism java?

953


What are the differences between processes and threads?

991


What is the relationship between clipping and repainting under awt?

1090


What is the difference between final, finally and finalize()?

1060


What is the common usage of serialization? What exceptions occur during serialization?

1045


What is the difference between a switch statement and an if statement?

1015


What are passing parameters?

1009


What is difference between identifier and variable?

997


What are the different types of methodologies?

944