File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Interview question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Interview question" Watch "Interview question" New topic
Author

Interview question

surya praveen
Greenhorn

Joined: Aug 11, 2008
Posts: 3
hi
Can anyone explain "how can we explain relationship between java and jvm using realtime exmaples?"
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

Hi surya praveen welcome to Javaranch ,
Firstly please UseAMeaningfulSubjectLine. for your post so that it is descriptive.

I am not clear what you are asking of.
Java is a programming language and the JVM is a virtual machine/ byte code interpreter for compiled Java programs.


SCJP, SCWCD.
|Asking Good Questions|
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Originally posted by surya praveen:
hi
Can anyone explain "how can we explain relationship between java and jvm using real time exmaples?"


Its like,
1. Instructions processed by CPU,
2. Human Body movements controlled by Brain !
3. A car running due to engine !

Hope you get this mapping of Java/JVM to real world !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
surya praveen
Greenhorn

Joined: Aug 11, 2008
Posts: 3
i am asking how can explain what is the relationship between java and jvm to person who dint know anything?
cheng jian
Greenhorn

Joined: Jul 28, 2008
Posts: 7
Originally posted by Sagar Rohankar:


Its like,
1. Instructions processed by CPU,
2. Human Body movements controlled by Brain !
3. A car running due to engine !

Hope you get this mapping of Java/JVM to real world !


I think this is a correct answer.
Without JVM java program can not be execute.
With JVM java program can run on different Platforms.
[ August 11, 2008: Message edited by: cheng jian ]
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2368
    
    7

let me try Java/JVM relationship:
in computer/java terms - JVM=processor, java=logic telling processor what to do.
in human terms - JVM=brain, java=signals/nerves send to brain (JVM) what to do such that person can move limbs or react to hot/cold things.
in car terms - JVM=engine, java=driver telling engine when to change gear/speed or brake etc.

hope this helps


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interview question