Page 1 of 1

Given the following code fragment:public class Calc {public static void main (String [] args) {//* insert code here Lin

Posted: Wed Jun 07, 2023 6:11 am
by answerhappygod
Given the following code fragment:public class Calc {public static void main (String [] args) {//* insert code here Line **System.out.print("The decimal value is" + var);Which three code fragments, when inserted independently at line **, enable the code to compile/

A. int var = 0b_1001;
B. long var = 0b100_01L;
C. float var = 0b10_01;
D. float var = 0b10_01F; E. double var = 0b10_01; F. double var = 0b10_01D;