A. Float
B. Real
C. Int
D. double
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Answer: B. Real
Explanation: “Real” is not a correct variable type.
There are 6 different variable types in Java:
1. Primitive data types: These are 8 basic data types supported by Java: Boolean, Character, Byte, Short, Integer, Long, Float and Double.
2. Reference data types : Reference data types are objects and they are used to refer the objects of value types.
3. Array : Array is used to store multiple values.
4. Enumeration : Enumeration is the data type used to store a collection of constant values.
5. Class : A class is the type used to define a new data type.
6. Interface : Interface is just like a class but it is used to define only the method signature.