Given the following class,
which of the following lines of code can replace INSERT CODE HERE to make the code compile?
Choose all that apply
public class Price { public void admission() { INSERT CODE HERE System.out.println(amount); } }
B, C, D.
0b is the prefix for a binary value and is correct.
0x is the prefix for a hexadecimal value.
This value can be assigned to many primitive types, including int and double, making options C and D correct.
Option A is incorrect because 9L is a long value.
long amount = 9L would be allowed.
Option E is incorrect because the underscore is immediately before the decimal.
Option F is incorrect because the underscore is the very last character.