The Java Language | Module 3

Course Name: The Java Language (Java as a Second Language Specialization)

Course Link: The Java Language

These are The Java Language Week 3 Coursera Answers


Q1. True or False: Java is the only language that supports inheritance.

  • True
  • False

Answer: True


Q2. Which Java keyword creates a class as a superclass?

  • is
  • implements
  • super
  • extends

Answer: extends


Q3. If class A extends class B, class A will have class B’s and . Select all that apply.

  • none of these
  • subclasses
  • methods
  • properties
Answer: methods, properties

These are The Java Language Week 3 Coursera Answers


Q4. True or False: If a class inherits from another class, it cannot have its own methods and properties.

  • True
  • False
Answer: False

Q5. A superclass inherits from __________ .

  • Nothing
  • the new class
  • the Java Object
  • a subclass
Answer: a subclass

Q6. True or False: if there is no extends keyword, a class still inherits from Java Object.

  • True
  • False
Answer: True

These are The Java Language Week 3 Coursera Answers


Q7. ________ allows a class to inherit from another class, while having its own unique properties and methods.

  • Inheritance
  • Polymorphism
  • Superclasses
Answer: Polymorphism

Q8. Which of the following describes Overloading Functions? Select all that apply.

  • Java runs the called functions with matching parameters at runtime
  • is supported by Java
  • Class can have more than 1 function with the same name IF the parameters are different
  • is implemented using the extends keyword
Answer: Java runs the called functions with matching parameters at runtime, is supported by Java, Class can have more than 1 function with the same name IF the parameters are different

Q9. Which class is at the top of the class hierarchy?

  • the superclass
  • the object class
  • the parent class
  • the subclass
Answer: the object class

Q10. True or False: An abstract class can only be subclassed.

  • True
  • False
Answer: True

These are The Java Language Week 3 Coursera Answers

See also  The Java Language | Module 2

More Weeks of the course: Click Here

More Coursera courses: https://progiez.com/coursera

These are The Java Language Week 3 Coursera Answers