529). Which 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()

Show Answer

530). Which of the following constant are defined in Character wrapper?

[A]MAX_RADIX
[B] MAX_VALUE
[C]TYPE
[D]All of the mentioned

Show Answer

531). Which of these is a super class of Character wrapper?

[A]Long
[B]Digits
[C]Float
[D]Number

Show Answer

532). Which of these methods is used to know whether a given Character object is part of Java’s Identifiers?

[A]isIdentifier()
[B] isJavaIdentifier()
[C] isJavaIdentifierPart()
[D]none of the mentioned

Show Answer

534). 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);
        }
    }

[A]<
[B]>
[C]?
[D]$

Show Answer

535). 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);
        }
    }

[A]<
[B]!
[C]@
[D]Space

Show Answer

536). What will be the output of the following Java program?
    class Output 
    {
         public static void main(String args[])
         {
             char a[] = {'a', '5', 'A', ' '};   
             System.out.print(Character.isDigit(a[0])+ " ");
             System.out.print(Character.isWhitespace(a[3])+ " ");
             System.out.print(Character.isUpperCase(a[2]));
        }
    }

[A]true false true
[B]false true true
[C] true true false
[D] false false false

Show Answer

537). What will be the output of the following Java program?
    class Output
    {
        public static void main(String args[])
        {
	    char a = (char) 98;
            a = Character.toUpperCase(a);
            System.out.print(a);
        }
    }

[A]b
[B]c
[C]B
[D]C

Show Answer

538). 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);
        }
    }

[A]true
[B]false
[C]@
[D]B

Show Answer