Q.

How can we identify whether a compilation unit is class or interface from a .class file?

A. Java source file header
B. Extension of compilation unit
C. We cannot differentiate between class and interface
D. The class or interface name should be postfixed with unit type
Answer» A. Java source file header
767
0
Do you find this helpful?
8

View all MCQs in

Java Programming

Discussion

No comments yet