Java MCQ-5
Java MCQ-5
YELAHANKA – BANGALORE - 64
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING
Open Course- DAY 5
[4] Which of these methods deletes all the elements from invoking collection?
a) clear() b)reset() c)delete() d)refresh()
[7] Which of these is necessary condition for automatic type conversion in Java?
a) The destination type is smaller than source type
b) The destination type is larger than source type
c) The destination type can be larger or smaller than source type
d) None of the mentioned
[14] What is the process of defining more than one method in a class differentiated by
parameters?
a) Function overriding b)Function overloading
c)Function doubling d)None of the mentioned
[17] Which keyword is used by method to refer to the object that invoked it?
a) import b) catch c) abstract d) this
[20] Which of these class can generate an array which can increase and decrease in size
automatically?
a) ArrayList() b) DynamicList() c) LinkedList() d) MallocList()
[22] Which concept of Java is achieved by combining methods and attribute into a class?
a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction
[24] Which of these keywords is used to prevent content of a variable from being modified?
a) final b) last c) constant d) static
[27] Which of these keywords is used to refer to member of base class from a subclass?
a) upper b) super c) this d) none of the mentioned
[28] A class member declared protected becomes member of subclass of which type?
a) public member b) private member c) protected member d) static member