Home » JAVA Programming » Methods » Question
  1. What is the output of this program?
    public class Result
    {
    public static void main(String args[])
    {
    Integer n = new Integer(260);
    float p = n.floatValue();
    System.out.print(p);
    }
    }
    1. 250
    2. 250.0
    3. 260
    4. 260.0
    5. None of these
Correct Option: D

260.0



Your comments will be displayed only after manual approval.