Edit: Typos have been corrected
Well I love Java very much as it is platform independent and its free! As i guess you know Java runs on what is called as Java Virtual Machine(JVM). To be a bit deeper, when you compile the Java code it turns into what is called as .class files. Hmmm class files? Ya, class files are the ones that can be understood by the JVM. To be simple enough, consider your the JVM(just as a example) and assume you have trained well verse in French language. So any one who speaks in French language to you, you can easily interpret it, understand it, and even get details of it and so on.
Ya what you guess is correct, here the French language is .class files and your the JVM! From this analogy we can say that Java is capable of producing .class files(i.e French language kinda syntax,in our example) . Hmmm well, till now so good. Lets take a breath and go in further.
Since JVM understands .class files, any language that produce .class file can run in JVM!!(Shocked?). With our example, I can say that any person can speak French language to you, until you understand it(note that your considered as JVM in this case). The languages(apart from Java) that produces .class files and can run in JVM are called as JVM languages. For example, Groovy is one of the JVM languages(other example are avilable at examples page). JVM languages are powerful and flexible even.
Hope you understand this post, comments are welcome.
Well I love Java very much as it is platform independent and its free! As i guess you know Java runs on what is called as Java Virtual Machine(JVM). To be a bit deeper, when you compile the Java code it turns into what is called as .class files. Hmmm class files? Ya, class files are the ones that can be understood by the JVM. To be simple enough, consider your the JVM(just as a example) and assume you have trained well verse in French language. So any one who speaks in French language to you, you can easily interpret it, understand it, and even get details of it and so on.
Ya what you guess is correct, here the French language is .class files and your the JVM! From this analogy we can say that Java is capable of producing .class files(i.e French language kinda syntax,in our example) . Hmmm well, till now so good. Lets take a breath and go in further.
Since JVM understands .class files, any language that produce .class file can run in JVM!!(Shocked?). With our example, I can say that any person can speak French language to you, until you understand it(note that your considered as JVM in this case). The languages(apart from Java) that produces .class files and can run in JVM are called as JVM languages. For example, Groovy is one of the JVM languages(other example are avilable at examples page). JVM languages are powerful and flexible even.
Hope you understand this post, comments are welcome.
No comments:
Post a Comment