adplus-dvertising
frame-decoration

Question

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

Posted under Java Programming

Answer: (a).Java source file header

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. What is use of interpreter?

Q. Which of these package is used for text formatting in Java programming language?

Q. Which of this class can be used to format dates and times?

Q. Which of these method returns an instance of DateFormat that can format time information?

Q. Which of these class allows us to define our own formatting pattern for dates and time?

Q. Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?

Q. Which of these formatting strings of SimpleDateFormat class is used to print week of the year?

Q. Which of the following is not a class of java.util.regex?

Q. What is the significance of Matcher class for regular expression in java?

Q. Object of which class is used to compile regular expression?

Q. Which capturing group can represent the entire expression?

Q. groupCount reports a total number of Capturing groups.

Q. Which of the following matches nonword character using regular expression in java?

Q. Which of the following matches end of the string using regular expression in java?

Q. What does public int end(int group) return?

Q. What does public String replaceAll(string replace) do?

Q. What does public int start() return?

Q. Which of the following is not introduced with Java 8?

Q. What is the purpose of BooleanSupplier function interface?

Q. What is the return type of lambda expression?