Yes it is but it is not usually used
yes, float is keyword and data type in java
Then data will be lost. Quite often, at least in Java, the compiler will protest at compile time, basically forcing you to rethink your strategy.
I am assuming that the question is "What would the best data type to represent a price".Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.I hope this answers your question.
In Java, just about anything is defined as a class; a class is a data type, so yes.
Given that you haven't specified the method in question it is impossible to say what the parameter's data type would be. However, in statically typed languages such as Java, the method's signature will tell you specifically which data type is to be expected: void f (int x) { // expects an argument of type int // ... } void f (float x) { // expects an argument of type float // ... }
by default any float value is double
The wrapper class for float is Float. java.lang.
with help of type casting it is possible
float data
THIS IS FOR JAVA i don't know about anything about other languages yes it can be assignedthe syntax is:int (number) = (float) numberFOR EXAMPLE:int = a;a = (float ) 5.5;if the (float) is not there then in Java it gives an error saying precision loss of data type
The non-class Java data types are primitives: * byte * short * int * long * float * double * boolean * char
That means that Java is fairly strict about data types.