Q. What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Long i = new Long(256);
System.out.print(i.hashCode());
}
}

  • (A) 256
  • (B) 256.0
  • (C) 256.00
  • (D) 257.00
πŸ’¬ Discuss
βœ… Correct Answer: (A) 256

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
82%
Success Rate