There are 8 bytes in a double
Chat with our AI personalities
Int: 4 bytes Float: 4 double: 8 char: 1 boolean: 1
Dependion on the variable there are several methods to do it, this can only be applied to primitive types and arrays, for an array its the "name_of_array.length", for the arraylist this change just a little, it would be like "name_of_array_list.size()", for an int, double, float, long, byte, it would be like "name_of_variable.LENGTH" this is a public variable so you dont need a get, an finally for the String there is a method "name_of_string.length()" this would return the size of this String
A double byte is two bytes.
Because 32 bit is exactly four bytes.
In Java, you can use either a float or a double