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 Main { public static void main(String[] argv) { INSERT CODE HERE System.out.println(amount); } }
B, C, D.
0b is the prefix for a binary value.
0x is the prefix for a hexadecimal value.
This value can be assigned to many primitive types, including int and double.
A is wrong since 9L is a long literal value.
E is wrong because the underscore is immediately before the decimal. The underscore must be placed between two digits.
F is wrong since the underscore is the last character.