Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class cast{
- public static void main(String [] args)
- {
- int a=129;
- byte b;
- float c;
- double g;
- char n;
- b=(byte)a;
- c=(float)a;
- g=(double)a;
- n=(char)a;
- System.out.println(b);
- System.out.println(c);
- System.out.println(g);
- System.out.println(n);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement