Menu
Question Index
...

What will be the output of the following program?

public class DemoOnOverLoad
{
    public static void main(String[] args)
    {
        int a = 99;
        System.out.println((Long) a);
    }
}


99
99L
99l
-99L
Compilation Error or Runtime Error

Doubts

Problems

Topic: Java Number Class

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App