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
I have been asked this question during an interview for a job.
This is a very interesting question from JDK-JRE-JIT-JVM in division Java Environment & OOPS Concepts of Java
Select the correct answer from above options
Java questions and answers, Java questions pdf, Java question bank, Java questions and answers pdf, mcq on Java pdf, Java questions and solutions, Java mcq Test , Interview Java questions, Java Questions for Interview, Java MCQ (Multiple Choice Questions),Core Java Questions, Core Java MCQ,core java interview questions for experiencedcore java interview questions for 3 years experience,java programming questions,core java interview questions for freshers,java interview questions and answers for freshers, java programming questions and answers pdf, java interview questions for beginners