MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?public class Result { public static void main(String args[]) { Double num = new Double(260.00625023); float p = num.floatValue(); System.out.print(p); } } |
| A. | 260.00626 |
| B. | 260 |
| C. | 260.00625023 |
| D. | 260.00 |
| E. | 260.260 |
| Answer» B. 260 | |