I'm studying after looking at the example question, but I don't understand the question well.
The result value and type of the next equation Should I write down the value and type separately?
Number 1 - Result value: 79.8 / Type: int and double (Should I use double here?) Should I use float?)
No. 2 - Result value: 3/ Type: int and int
No. 3 - Result value: 3.333333333335 / Type: double and int
No. 4 - Result value: false / Type: int and int
Is this answer correct?
java type boolean double int
I think I just need to write down one type of result I heard that the decimal point is basically a double type in Java And there's a guy named Boolean I think you should find out how the int and double calculations convert the type.
How to print type of primitive variables in Java https://stackoverflow.com/questions/28475119/how-to-print-type-of-primitive-variables-in-java
Object obj = 10==9;
System.out.println(obj.getClass());
© 2024 OneMinuteCode. All rights reserved.