How Can We Identify Whether A Compilation Unit Is Class Or #159
How can we identify whether a compilation unit is class or interface from a .class file?
This multiple choice question (MCQ) is related to the book/course
gs gs128 Java.
It can also be found in
gs gs128 Java Environment Oops Concepts - JDK, JRE, JIT & JVM - Quiz No.1.
How can we identify whether a compilation unit is class or interface from a .class file?
Java source file header
Extension of compilation unit
We cannot differentiate between class and interface
The class or interface name should be postfixed with unit type