answersLogoWhite

0


Best Answer

float and double are types of numbers that accept decimals. Consider them as numbers in scientific notation. double allows a larger range of numbers than float, and more significant digits. Usually you would use double, unless you have some special situation, like a large array of numbers, and you decide the extra precision is not necessary.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does the float do in java like declare blablabla as float?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why java is not a pure object oriented?

java is not purely oops because of primitive types in java like int and float double


What does blablabla mean?

"Blablabla" is a colloquial term used to represent meaningless or nonsensical speech or chatter. It is often used when someone is mimicking or making fun of someone else's speech.


How is granite like an ice cream?

blablabla blabla blablablablablabla blabla blablabla


How to declare a float variable in java?

it is the same as an int, String, or any of the others:float myVar = 5.7f;If you try to assign a decimal number you must place an "f" at the end, otherwise Java will assume you are trying to assign a double.


Variables as object in java?

There are two main categories of variables in Java. They are primitive and non primitive. Primitive data types are the basic data types like int, float, char etc. These are not objects. The other non primitive data types are all types of Java Objects. Example: String, ArrayList etc.


Does Google Chrome support Java?

Yes, Google Chrome supports Java, although it has to be Version 6 Update 10 RC. You can download it here: http://java.sun.com/javase/downloads/ea.jsp


Is destructor allowed in java?

No. Java does not support the concept of Destructors like C


Header files in Java programming?

Java does not require header files like C/C++.


How do you write the program to search for a word in an array of 5 words?

Write a loop that compares the word with every word in the array. For example, in Java, I think it would be something like this: // Declare some variables here ... for (int i = 0; i


What does java and java fx do?

JAVA is Group Of Technologies Like Java SE, Java EE, Java ME and Java FX is a Latest Technology Released From SUN Micro Systems Sun Developed Java FX as Counterpart to Microsoft's Graphics Libraries and Rich Support of Visual Studio to GUI Classes of .NET Framework. But in JAVA FX We can Do some advanced Graphics Operations in Programming Apart From AWT & Swing of Java SE and Rich Internet Application Technologies Like Enterprise Java Beans (EJB),JSP Of Java EE.


Abbrevation for JAVA?

"Java" doesn't stand for anything. For some reason wikianswers has Java in capitals, which makes it look like its an abbreviation.


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.