As you know, Java is popular in IT era. One of the main reasons why Java is popular is that it is free. Any one can use it. Normally you may think the free one will not provide the best quality. But it's not always true. One of the exceptions is Java . Are you amazed? Let's continue our article. This article is suitable for new guys who are going to learn Java .
Java was released by Sun Microsystem in 1996 publicly. Their slogan is "Write Once, Run Anywhere" (WORA). Once we have written a Java program, and then we can run that program any environment.
How can Java do that? Java architecture has Java Virtual Machine (JVM). It designs to be a simple paradigm without any complexities compared with C language.
Supposedly I am working at a multinational company. we have many foreigners who come from different countries. Of course different countries use their different languages. Problem is communication. To do a communication, we have to have a common platform which we all can understand. Let's say we select English as an official language at our office and then English will be a common platform for us. Please see the following figure 1.
Based on the above figure, we can easily see the following two steps:
1. to establish English channel as a common platform
2. to interpret that English for specific native language
Similarly, it uses Java Byte Code as a common platform which Java Virtual Machine (JVM) can understand. Two processes are the following
1. to establish a Java Byte Code code as a common platform
2. to interpret that Java Byte Code for dedicated OS executable instructions and run
To run a Java program, it needs to do two JVM processes. So what do we need to run a Java program? Yes, we need only one which is JVM in our computer system. That's all. To conclude, any computer system which has JVM, can run any Java programs.


No comments:
Post a Comment