Methods


  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. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    260.0


  1. Which of these methods is used to check for infinitely large and small values?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    isinfinite() method returns true is the value being tested is infinitely large or small in magnitude.



  1. Which of the following is a method of wrapper Float for converting the value of an object into byte?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    byte byteValue()


  1. At line number 2 below, choose 3 valid data-type attributes/qualifiers among “final, static, native, public, private, abstract, protected”











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Every interface variable is implicitly public static and final.