What is the output of this program? 1. class conversion { 2. public static void main(String args[ ]) 3. { 4. Double a = 295.04; 5. int b = 300; 6. byte c = (byte) a; 7. byte d = (byte) b; 8. System.out.println(c + “ “ + d); 9. } 10. }
What is the output of this program? 1. class conversion { 2. public static void main(String args[ ]) 3. { 4. Double a = 295.04; 5. int b = 300; 6. byte c = (byte) a; 7. byte d = (byte) b; 8. System.out.println(c + “ “ + d); 9. } 10. }
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!