Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Question No 2(b)
- ## Find the output of following program
- ```
- public class Test {
- public static void main(String args[]){
- double d = 100.04;
- long l = (long)d;
- int i = (int)l;
- System.out.println("Double Value = " + d);
- System.out.println("Long Value = " + l);
- System.out.println("Integer Value = " + i);
- }
- }
- ```
- ## Output
- ```
- Double Value = 100.04
- Long Value = 100
- Integer Value = 100
- ```
Add Comment
Please, Sign In to add comment