Home » JAVA Programming » Methods » Question
  1. What is the output of this program?
    public class Result 
    {
    public static void main(String args[])
    {
    Long n = new Long(230);
    System.out.print(n.hashCode());
    }
    }
    1. 220
    2. 220.0
    3. 230
    4. 230.0
    5. 250
Correct Option: C

230



Your comments will be displayed only after manual approval.