Question: 11.) What is the result of the following: int f = 9; double answer; answer = (double) f/3; f/= 3; System.out.println (answer is:

1.) What is the result of the following: int ( mathrm{f}=9 ); double answer; answer ( =( ) double ( ) mathrm{f} / 3 ) 

11.) What is the result of the following: int f = 9; double answer; answer = (double) f/3; f/= 3; System.out.println ("answer is: " + answer); System.out.println("f is: " + f);

Step by Step Solution

3.31 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Result will be Answer is 30 fis 3 1 public class calculation 2 3 public sta... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!