Java concepts and its programming MCQs

80 MCQs  — Computer Programming MCQs  (Page 6 of 8)

Interfaces helps in which type of inheritance ?
A. Multiple inheritance
B. Multilevel inheritance
C. Hierarchical inheritance
D. None of above
Automatic type conversion in Java takes place when________________?
A. Two type are compatible and size of destination type is equal of source type.
B. Two type are compatible and size of destination type is larger than source type.
C. Two type are compatible and size of destination type is shorter than source type.
D. All of the above
All collection classes are available in _________________?
A. Java.util package
B. Java.io package
C. Java.lang package
D. Java.awt package
Program which executes applet is known as________________?
A. Jvm
B. Virtual machine
C. Applet engine
D. None of above
Why we use array as a parameter of main method_________________?
A. Can store multiple values
B. It is syntax
C. Both of above
D. None of above