Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:45 pm
by answerhappygod
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