• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys.....
i have heard this that if you want to know java in depth and want to clear the exam with good score...then You should consider yourself as a compiler..but sometimes i get a bit confused that what a compiler does and what a jvm.... and thats the main problem where i get stuck!!!
please help if anyone could
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The compiler is mainly bothered about syntax, handling checked exceptions, checking for method signatures, ensuring classes are implemented as they should be etc.

The JVM is bothered about runtime aberrations such as calling methods on a reference that points to null, accessing indexes that are out of a given array range, handling runtime other exceptions.

If you have any specific question do let us know.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you understand exactly what the compiler is, and what the JVM is?

The compiler translates your Java source code into bytecode (instructions that the computer understands). The compiler checks if your source is valid Java code.

The JVM (Java Virtual Machine) is what executes the compiled bytecode when you run your Java program.

The page About the Java Technology from Sun's Java Tutorials explains it in pictures.

Please use a meaningful subject line (instead of "need help") when you post a question on JavaRanch.
[ September 12, 2008: Message edited by: Jesper Young ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic