InterviewSolution
Saved Bookmarks
| 1. |
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» Right choice is (a) Java source file header Explanation: The Java source file contains a header that declares the type of class or interface, its visibility with respect to other classes, its name and any superclass it may extend, or interface it implements. |
|