wood burning stoves 2.0*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "abt precision" Watch "abt precision" New topic
Author

abt precision

deepak mehta
Greenhorn

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?
from


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:
http://babbage.cs.qc.edu/courses/cs341/IEEE-754references.html

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:
http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html


Mike Gershman
SCJP 1.4, SCWCD in process
 
Consider Paul's rocket mass heater.
 
subject: abt precision