Upcasting

Write a program in java to demonstrate upcasting?

class UpCasting {                 public static void main(String arg[])                 {                                 int a=9;                                 long l=a;                                 System.out.println(l);…

Read More