BASIC CONSTRUCTS

15. How to convert int to long

            class IntToLong{
            public static void main(String st[]){
                int num = 23;
                long l = num;
                System.out.println("Converted long : "+l);
            }
        }
        

OUTPUT

            Converted long : 23