Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Interview question  RSS feed

 
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?"
 
Bartender
Posts: 2856
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.
 
Ranch Hand
Posts: 2908
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?
 
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 ]
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • 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
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!