a) Integer b) Long c) Byte d) Double
View Question
What will be the output of the following Java code?
class binary
{
public static void main(String args[])
{
int num = 17;
System.out.print(Integer.toBinaryString(num));
}
}
What will be the output of the following Java code? class binary ...
View Question
What will be the output of the following Java code?
class isNaN_output
{
public static void main(String args[])
{
Double d = new Double(1 / 0.);
boolean x = d.isNaN();
System.out.print(x);
}
}
What will be the output of the following Java code? class isNaN_output ...
View Question
What will be the output of the following Java code?
class isinfinite_output
{
public static void main(String args[])
{
Double d = new Double(1 / 0.);
boolean x = d.isInfinite();
System.out.print(x);
}
}
What will be the output of the following Java code? class isinfinite_output ...
View QuestionWhich of the following package stores all the simple data types in java?
a) lang b) java c) util d) java.packages Answer: a Explanation: lang
View QuestionWhich of these methods is used to check for infinitely large and small values?
a) isInfinite() b) isNaN() c) ...
View QuestionWhich of the following is a method of wrapper Float for converting the value of an object into byte?
a) bytevalue() b) byte byteValue() c) Bytevalue() d) Byte Bytevalue() Answer: b Explanation: byte ...
View QuestionWhich of these is a wrapper for simple data type float?
a) float b) double c) Float d) Double Answer: c Explanation: Float
View QuestionWhich of these is a super class of wrappers Double & Integer?
a) Long b) Digits c) Float d) Number Answer: d Explanation: Number is an abstract class containing subclasses Double, ...
View QuestionWhich of these is a process of converting a simple data type into a class?
a) type wrapping b) type conversion c) type casting d) none of the Mentioned Answer: a Explanation: ...
View Question