Question: _______ is the wrapper for the data type int. Select one: a.Character b.Float c.Integer d.Int Clear my choice Constructor have ______ return type. Select one:
_______ is the wrapper for the data type int.
Select one:
a.Character
b.Float
c.Integer
d.Int
Clear my choice
Constructor have ______ return type.
Select one:
a.int
b.char
c.void
d.None of these
____ is used for dynamic memory allocation while creating objects of a class.
Select one:
a.new
b.delete
c.dynamicity
d.Both A and B
_____ method is used to find the total number of characters in a string.
Select one:
a.size()
b.length()
c.len()
d.chars()
onstructor are called_________ when object of the class is created.
Select one:
a.explicitly
b.automatically
c.by Specified call
d.Can't say
What package is a part of the wrapper class which is imported by default into all Java programs?
Select one:
a.net
b.lang
c.util
d.All of these
_____ keyword is used to refer to super class constructor.
Select one:
a.base()
b.child()
c.super()
d.None of these
_____ is a type of class.
Select one:
a.Object
b.Server
c.Reference
d.None of these
______ is the order of constructor calling when inheritance is used in Java.
Select one:
a.Parent to child
b.Child to Parent
c.Parent Only
d.Cannot Say
___ is the method defined with same name as class name.
Select one:
a.Member function
b.Method
c.Constructor
d.Function
The variable declared in a class for the use of all the methods of a class are called________.
Select one:
a.Reference variables
b.Instance Variables
c.Constant Variables
d.All of these
______ is the function of valueOf() in java.
Select one:
a.valueof() converts any type of values into the required data type.
b.valueof() converts different type of values into Strings.
c.valueof() converts different type of values into Integer.
d.All of these
Which method of the String class is used to test string equality?
Select one:
a.equals
b.isequal
c.==
d.All of these
Which of these classes is a superclass of every class in Java?
Select one:
a.String
b.StringBuffer
c.Object
d.None of this
Wrapper classes are not used to convert any data type into an object.
Select one:
a.TRUE
b.FALSE
c.May be
d.Can't say
Which of the following statements is True?
Select one:
a. reverse() method reverses all characters.
b.reverseall() method reverses all characters.
c.replace() method replaces first occurrence of a character in invoking string with another character.
d.replace() method replaces last occurrence of a character in invoking string with another character.
Which of this method of class StringBuffer is used to concatenate the string representation to the end of invoking string?
Select one:
a.a) concat()
b.b) append()
c.c) join()
d.d) concatenate()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
