a) Class b) System c) Runtime d) ClassLoader ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String x = Boolean.toString(false);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = “true false”;
boolean x = Boolean.parseBoolean(str);
System.out.print(x);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = “TRUE”;
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = “true false true”;
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
What will be the output of the following Java program? class Output ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
String str = “true”;
boolean x = Boolean.valueOf(str);
System.out.print(x);
}
}
What will be the output of the following Java program? class Output ...
View QuestionWhich of these class have only one field?
a) Character b) Boolean c) Byte d) void Answer: d Explanation: Void class has only one ...
View QuestionWhich of these methods is used to know whether a string contains “true”?
a) valueOf() b) valueOfString() c) getString() d) none of the mentioned Answer: a Explanation: valueOf() returns true if the ...
View QuestionWhich of these methods return string equivalent of Boolean object?
a) getString() b) toString() c) converString() d) getStringObject() Answer: b Explanation: toString()
View QuestionWhich of the following constant are defined in Boolean wrapper?
a) TRUE b) FALSE c) TYPE d) All of the mentioned Answer: d Explanation: Boolean wrapper defines 3 ...
View Question