Question
class Output {
public static void main(String args[]) {
Long i = new Long(256);
System.out.print(i.hashCode());
}
}
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());
}
}
Answer: Option A
Was this answer helpful ?
None.
Output:
$ javac Output.java
$ java Output
256
Was this answer helpful ?
Submit Solution