Question: 32. Floating-point literals are of type a. float by default. a float b. double c. real d. decimal 33. A a. consumer b. servant c.
32. Floating-point literals are of type a. float by default. a float b. double c. real d. decimal 33. A a. consumer b. servant c. caller d. client of a class called MyClass is another class whose methods call the methods of MyClass. 34. The format specifier a. %f b, %d c.9afd d.90r is used to output values of type float or double. 35. The format specifier % 2f specifies that two digits of precision should be output in the floating- point number. a. to the left of the decimal point b. centered c. to the right of the decimal point d. None of the above. 36. Types in Java are divided into two categories. The primitive types are boolean, byte, char, short, int, long float and double. All other types are a. static b. reference types. c. declared d. source 37. Which of the following statements is false? a. A primitive-type variable can store exactly one value of its declared type at a time. b. Variables of types byte, char, short, int, long, float and double are initialized to 0. d. Primitive-type instance variables are initialized by default. c. Variables of type Boolean are initialized to true. 38. Reference-type variables (called references) storein memory a. the value of an object b. a copy of an object c. the location of an object d. the size of an object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
