571. Interfaces helps in which type of inheritance ?
A. Multiple inheritance
B. Multilevel inheritance
C. Hierarchical inheritance
D. None of above

572. 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

573. All collection classes are available in _________________?
A. java.util package
B. java.io package
C. java.lang package
D. java.awt package

574. Size of float and double in Java is________________?
A. 32 and 64
B. 64 and 64
C. 32 and 32
D. 64 and 32

575. What will be output of following program? public class Test{public static void main(String[] args){byte b=127; b++; b++; System.out.println(b); } } ?
A. 127
B. -127
C. 129
D. -129

576. Program which executes applet is known as________________?
A. JVM
B. virtual machine
C. applet engine
D. None of above

577. How many primitive data types are there in Java ?
A. 5
B. 6
C. 7
D. 8

578. How many keywords are available in java ?
A. 24
B. 48
C. 96
D. 192

579. Methods that have same name, but different Parameter list and different definition known as_________________?
A. Overriding
B. Overloading
C. Constructor
D. none of these

580. 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

NOTE
IF YOU THINK ANY OF THE MCQ ABOVE IS WRONG.
PLEASE COMMENT WITH CORRECT ANSWER AND ITS DETAIL EXPLANATION IN COMMENT BOX.
THANK YOU

This Post Has One Comment

Leave a Reply