What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
Integer i = new Integer(257);
float x = i.floatValue();
System.out.print(x);
}
}
a) 0
b) 1
c) 257
d) 257.0
Answer: d
Explanation:
Output:
257.0
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