a) getBool() b) booleanValue() c) getbooleanValue() d) getboolValue() ...
View Question
What will be the output of the following Java program?
class Output
{
public static void main(String args[])
{
char a = ‘@’;
boolean x = Character.isLetter(a);
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[])
{
int a = Character.MIN_VALUE;
System.out.print((char)a);
}
}
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[])
{
int a = Character.MAX_VALUE;
System.out.print((char)a);
}
}
What will be the output of the following Java program? class Output ...
View QuestionWhich of these coding techniques is used by method isDefined()?
a) Latin b) ASCII c) ANSI d) UNICODE Answer: d Explanation: isDefined() returns true if ch ...
View QuestionWhich of these methods is used to know whether a given Character object is part of Java’s Identifiers?
a) isIdentifier() b) isJavaIdentifier() c) ...
View QuestionWhich of these is a super class of Character wrapper?
a) Long b) Digits c) Float d) Number Answer: d Explanation: Number is an abstract class ...
View QuestionWhich of the following constant are defined in Character wrapper?
a) MAX_RADIX b) MAX_VALUE c) TYPE d) All of the mentioned Answer: d Explanation: Character wrapper defines 5 constants ...
View QuestionWhich of these methods of Character wrapper can be used to obtain the char value contained in Character object.
a) get() b) getVhar() c) charValue() d) getCharacter() Answer: c Explanation: To obtain the char value contained in a ...
View Question
What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
double x = 3.14;
int y = (int) Math.floor(x);
System.out.print(y);
}
}
What will be the output of the following Java code? class Output ...
View Question