adplus-dvertising
frame-decoration

Question

At line number 2 below, choose 3 valid data-type attributes/qualifiers among “final, static, native, public, private, abstract, protected”
public interface Status
   {
        /* insert qualifier here */ int MY_VALUE = 10;
   }

a.

final, native, private

b.

final, static, protected

c.

final, private, abstract

d.

final, static, public

Posted under Java Programming

Answer: (d).final, static, public

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. At line number 2 below, choose 3 valid data-type attributes/qualifiers among “final, static, native, public, private, abstract, protected”

Similar Questions

Discover Related MCQs

Q. Which of these is supported by method overriding in Java?

Q. What are the features of an Object Oriented Programming (OOPs)?

Q. What are the features reused using Inheritance in Java?

Q. The class that is being inherited or subclassed is called ___.

Q. The class that inherits an already defined class is called ___.

Q. Java language supports ___ type of inheritance.

Q. You should use Inheritance when there is an IS-A relationship between classes. State TRUE or FALSE.

Q. What are the types of Inheritances(Whether Java supports or not) available in Object-Oriented Programming Languages?

Q. In a Single inheritance, Class Binherits only from Class A. State TRUE or FALSE.

Q. In a Multi Level Inheritance Class-C inherits from Class-B and Class-B inherits from Class-A. State TRUE or FALSE.

Q. In a Multi-Level Inheritance in Java, the last subclass inheritsmethods and properties of ____.

Q. When a Class inherits two superclasses (not in Java), it is called ____ inheritance.

Q. A Subclass can become a Superclass to another class extending from it in Java. State TRUE or FALSE.

Q. You can not inherit a Superclass'es constructor even after using inheritance in Java. State TRUE or FALSE.

Q. Which is the keyword used to implement inheritance in Java?

Q. Can you call it a full-fledged inheritance of using ABSTRACT classes and INTERFACES in Java?

Q. To control inheritance to different classes and levels, Java provides ____.

Q. To stop or block inheriting a given class, the ___ keyword is used before the class.

Q. What is the maximum number of levels possible in a Multilevel Inheritance in Java?

Q. If a class is not subclassed by any class, then defining a default constructor is not mandatory in Java.State TRUE or FALSE.