Guest User

Untitled

a guest
May 28th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # Question No 2(b)
  2.  
  3. ## Find the output of following program
  4. ```
  5. public class Test {
  6. public static void main(String args[]){
  7. double d = 100.04;
  8. long l = (long)d;
  9. int i = (int)l;
  10.  
  11. System.out.println("Double Value = " + d);
  12. System.out.println("Long Value = " + l);
  13. System.out.println("Integer Value = " + i);
  14. }
  15. }
  16. ```
  17.  
  18. ## Output
  19. ```
  20. Double Value = 100.04
  21. Long Value = 100
  22. Integer Value = 100
  23. ```
Add Comment
Please, Sign In to add comment