Similar Collections


    No collections found

questions

Title
Which of these classes is not included in java.lang

Which of these classes is not included in java.lang


  1. Byte
  2. Integer
  3. Array
  4. Class
discuss
Which of these is a process of converting a simple data type into a class

Which of these is a process of converting a simple data type into a class?


  1. type wrapping
  2. type conversion
  3. type casting
  4. none of the Mentioned.
discuss
Which of these is a super class of wrappers Double & Integer

Which of these is a super class of wrappers Double & Integer?


  1. Long
  2. Digits
  3. Float
  4. Number
discuss
Which of these is a wrapper for simple data type float

Which of these is a wrapper for simple data type float?


  1. float
  2. double
  3. Float
  4. Double
discuss
Which of the following is a method of wrapper Float for converting the value of an object into byte

Which of the following is a method of wrapper Float for converting the value of an object into byte?


  1. bytevalue()
  2. byte byteValue()
  3. Bytevalue()
  4. Byte Bytevalue()
discuss
Which of these methods is used to check for infinitely large and small values

Which of these methods is used to check for infinitely large and small values?


  1. isInfinite()
  2. isNaN()
  3. Isinfinite()
  4. IsNaN()
discuss
Which of the following package stores all the simple data types in java

Which of the following package stores all the simple data types in java


  1. lang
  2. java
  3. util
  4. java.packages
discuss
What is the output of this program

What is the output of this program

    class isinfinite_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isInfinite();
            System.out.print(x);
        }
    }

  1. True
  2. False
discuss
What is the output of this program

What is the output of this program?

    class isNaN_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isNaN();
            System.out.print(x);
        }
    

  1. True
  2. False
discuss
What is the output of this program

What is the output of this program?

  class binary 
    {
         public static void main(String args[]) 
         {
             int num = 17;
             System.out.print(Integer.toBinaryString(num));
         }
    }

  1. 1001
  2. 10011
  3. 11011
  4. 10001
discuss
Which of these is a wrapper for data type int

Which of these is a wrapper for data type int


  1. Integer
  2. Long
  3. Byte
  4. Double
discuss
Which of the following methods is a method of wrapper Integer for obtaining hash code for the invoking object

Which of the following methods is a method of wrapper Integer for obtaining hash code for the invoking object?


  1. int hash()
  2. int hashcode()
  3. int hashCode()
  4. Integer hashcode()
discuss
Which of these is a super class of wrappers Long, Character & Integer

Which of these is a super class of wrappers Long, Character & Integer?


  1. Long
  2. Digits
  3. Float
  4. Number
discuss
Which of these is a wrapper for simple data type char

Which of these is a wrapper for simple data type char


  1. Float
  2. Character
  3. String
  4. Integer
discuss
Which of the following is method of wrapper Integer for converting the value of an object into int

Which of the following is method of wrapper Integer for converting the value of an object into int?


  1. bytevalue()
  2. int intValue();
  3. Bytevalue()
  4. Byte Bytevalue()
discuss
Which of these methods is used to obtain value of invoking object as a long

Which of these methods is used to obtain value of invoking object as a long?


  1. long value()
  2. long longValue()
  3. Long longvalue()
  4. Long Longvalue()
discuss
What is the output of this program

What is the output of this 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]));
        }
    }

  1. true false true
  2. false true true
  3. true true false
  4. false false false
discuss
What is the output of this program

What is the output of this program?

    class Output 
    {
        public static void main(String args[]) 
        {
            Integer i = new Integer(257);  
            byte x = i.byteValue();
            System.out.print(x);
        }
    }

  1. 0
  2. 1
  3. 256
  4. 257
discuss
Which of these class have only one field ‘TYPE’

Which of these class have only one field ‘TYPE’?


  1. Void
  2. Process
  3. System
  4. Runtime
discuss
Which of the following method of Process class can terminate a process

Which of the following method of Process class can terminate a process?


  1. void kill()
  2. void destroy()
  3. void terminate()
  4. void exit()
discuss
total MCQs: 255

MCQs

255

Views

181

Best Answers

299

Points

5