Methods
- 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);
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
260.0
- Which of these methods is used to check for infinitely large and small values?
-
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.
- Which of the following is a method of wrapper Float for converting the value of an object into byte?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
byte byteValue()
- At line number 2 below, choose 3 valid data-type attributes/qualifiers among “final, static, native, public, private, abstract, protected”
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Every interface variable is implicitly public static and final.