Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

What will happen when you attempt to compile and run the following code?

  1. public class Demo
  2. {
  3.    public static void main(String args[])
  4.    {
  5.        Long lng = new Long(113);
  6.        System.out.println(lng);
  7.    }
  8. }
a. Compilation error
b. No compilation error but will throw runtime exception when executed.
c. 113
d. None of the above
No votes yet
Share this

Post new comment