Q: What are the two floating point notations in Java language?
Solution: no solution
Q: Choose the correct implementation of floating point literals in the exponential form in Java.
Solution: no solution
Q: Choose the correct usage of boolean literal in the options below.
Solution: no solution
Q: What is the output of this Java snippet? int a = 0b111; System.out.println(a);
Solution: 1x2^2 + 1x2^1 + 1x2^0 1x4 + 1x2 + 1 4 + 2 + 1
Q: Choose the wrong Java code statement below.
Solution: You can not assign an integer value to a boolean data type. Java does not convert integers to boolean true or false.
Q: What is the default boolean literal assigned to a boolean variable in Java?
Solution: Default values are assigned only to the instance variables.
You Have Score    | /6 |