literal « float « Java Data Type Q&A





2. Floating point literals    forums.oracle.com

Hi, This is a something that when I first started learning java I skimmed over, and now I have a question that is bugging me about floating point literals. If all floating point literals in java are automatically a double type then is the reference to a float ignored when the class is compiled? I know its probably a stupid question, ...