my dog learned polymorphism
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "need help" Watch "need help" New topic

need help

geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 79
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

Joined: Feb 24, 2006
Posts: 6662

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.

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15094

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 ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: need help
It's not a secret anymore!