Vidyalelo
Java Programming · Q116

Constructors and Methods

Programming · Java Programming · question 116

Q116

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

A.
Java source file header
Answer
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: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board