Q. How can we identify whether a compilation unit is class or interface from a .class file? (Solved)
1. Java source file header
2. Extension of compilation unit
3. We cannot differentiate between class and interface
4. The class or interface name should be postfixed with unit type
- a. Java source file header