This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help

 
geet kaur
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • 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
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • 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.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic