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
Answer: a
Explanation:
Output:
256
Related Posts
The interval from the time of submission of a process to the time of completion is termed as ____________
The processes that are residing in main memory and are ready and waiting to execute are kept on a list called _____________
Which module gives control of the CPU to the process selected by the short-term scheduler?
A process that is based on IPC mechanism which executes on different systems and can communicate with other processes using message based communication, is called ________
The remote method invocation __________
What is the full form of RMI?
To resolve the problem of data representation on different systems RPCs define _____________
Join The Discussion