Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interview question

 
surya praveen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Can anyone explain "how can we explain relationship between java and jvm using realtime exmaples?"
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
surya praveen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am asking how can explain what is the relationship between java and jvm to person who dint know anything?
 
cheng jian
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3502
14
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic