It's not a secret anymore!
The moose likes Beginning Java and the fly likes abt precision 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 » Java » Beginning Java
Bookmark "abt precision" Watch "abt precision" New topic

abt precision

deepak mehta

Joined: Jan 25, 2005
Posts: 15
hello all group members
sir i want to know that
1.what is precision?and wht is meant by single and double precision?
2.why is classfile created when we compile java source file and wht is it use and is java virtual machine use it for interpret
plz sir this is urgent?

deepak kr.
Mike Gershman
Ranch Hand

Joined: Mar 13, 2004
Posts: 1272
pi is 3.14159 or pi is 3.14

The first statement is correct to 6 significant figures.
The second statement is correct to 3 significant figures.
This is precision.

Single precision Java variables are correct to about 7 significant figures.
Single precision Java variables are correct to about 16 significant figures.

More information is here:

The class files have your Java source program translated by the javac compiler into bytecode and detailed information about your classes. The jvm uses the class files to execute your program on the target machine.

You can learn all about class files, bytecode, and the jvm here:

Mike Gershman
SCJP 1.4, SCWCD in process
I agree. Here's the link:
subject: abt precision
jQuery in Action, 3rd edition