Sail E0 Webinar
Question


What is the output of this program?


class Output {
public static void main(String args[]) {
Long i = new Long(256);
System.out.print(i.hashCode());
}
}
Options:
A .  256
B .  256.0
C .  256.00
D .  257.00
Answer: Option A

None.
Output:
$ javac Output.java
$ java Output
256



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers