Question: JAVA language Question 7 Which of the following code fragments will compile without error? a. Code Snippet int balance = (double) 100; b. Code Snippet
Question 7 Which of the following code fragments will compile without error? a. Code Snippet int balance = (double) 100; b. Code Snippet (int) balance = 13.75; c. Code Snippet double balance = 13.75; int dollars = balance; d. Code Snippet double balance = 13.75; int dollars = (int) balance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
