Page 1 of 1

Answer the following questions based on Program 4: 4: 1 1/Frogram 2 ... string strval - new string (88.6"}, Double di -

Posted: Fri May 20, 2022 11:41 am
by answerhappygod
Answer The Following Questions Based On Program 4 4 1 1 Frogram 2 String Strval New String 88 6 Double Di 1
Answer The Following Questions Based On Program 4 4 1 1 Frogram 2 String Strval New String 88 6 Double Di 1 (59.77 KiB) Viewed 34 times
Answer the following questions based on Program 4: 4: 1 1/Frogram 2 ... string strval - new string (88.6"}, Double di - (1) double d2 = Character el-'h'; char c2 (11) 10 System.out.println("value of di: " + dl)? 11 System.out.println("alue of 2 + a2 (SL) 12 System.out.println("value of cl: + cl) 13 System.out.println("value of 62: + (char) (2 + 10) 14 15 1 a) Complete Program 4 by filing in the blanks with an appropriate statement based on the output shown in Figure 2 Value of d: 11.5 Value of d: 10.3 Value of ci: Value of c2r Figure 2 (ii) character, chora DG tersedblestrval) D(i) charcharvalec) 06) Oble.valueof("1.5") D) Double parseboble(11.5) (1) Dolorstrval) (1) double proble("11.5") DO) double(11.5) (1) chura) D(1) Duna) DO) double valicof("1.5") 0.) stal.dublava DG) strval. Dublava 00) double voleof(115) DG) cicharvalua) DG) Character.carval (1) Cherche (1) Dell (1) (1) Doudohlava) () dunar dobles) b) Assuming Program 4 has been completed, identify the two statements in Program 4 that perform unboxing Line B Line Line 7 Line 4 Line