• Home
  • Ask a Question
  • About
  • Contact
  • Advertise
  • Sitemap
MENU

Ad Java MCQ

Java | Advance Java | Multiple Choice | Questions and Answers | Test Bank

  • Home
  • Translate

True or false? An object of a class that implements an interface may be thought of as an object of that interface type.

Add Comment

True or false? An object of a class that implements an interface may be thought of as an object of that interface type.



Answer: True

True or false? If a superclass declares an abstract method, a subclass must implement that method.

Add Comment

True or false? If a superclass declares an abstract method, a subclass must implement that method.



Answer: False

True or false? Invoking a subclass-only method through a subclass variable is not allowed.

Add Comment

True or false? Invoking a subclass-only method through a subclass variable is not allowed.



Answer: False

True or false? All methods in an abstract class must be declared as abstract methods.

Add Comment

True or false? All methods in an abstract class must be declared as abstract methods.



Answer: False

Casting a reference stored in a superclass variable to a subclass type is called __________.

Add Comment

Casting a reference stored in a superclass variable to a subclass type is called __________.



Answer: Downcasting

Methods that are not interface methods and that do not provide implementations must be declared using keyword __________.

Add Comment

Methods that are not interface methods and that do not provide implementations must be declared using keyword __________.



Answer: Abstract

_________ involves using a superclass variable to invoke methods on superclass and subclass objects, enabling you to "program in the general."

Add Comment

_________ involves using a superclass variable to invoke methods on superclass and subclass objects, enabling you to "program in the general."



Answer: Polymorphism

Subscribe to: Posts (Atom)

Search your questions here...

Trending Questions

Blog Archive

  • March (110)
  • June (46)
  • February (54)
  • September (68)
  • July (47)
  • February (147)

Label

Absolute Java Chapter 4 Advanced Java JAVA Java Chapter 4
Powered by Blogger.
Copyright © 2015 Ad Java MCQ | Term Of Service | Disclaimer | Privacy Policy | DMCA