InterviewSolution
Saved Bookmarks
| 1. |
State the value of characteristic and mantissa when the following code is executed: String s = “4.3756”; int n = s.indexOf(‘.’); int characteristic=Integer.parseInt (s.substring (0,n)); int mantissa=Integer.valueOf(s.substring(n+1)); |
|
Answer» Value of characteristic = 4 and Value of mantissa = 3756. |
|