Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 214079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:20:24+00:00 2026-05-11T18:20:24+00:00

My teacher gave out a practice exam on java recently and I’m curious to

  • 0

My teacher gave out a practice exam on java recently and I’m curious to see how I did on the true/false part. I’m least confident about number one, so any explanation there would help a lot.

  1. In Java, a class can extend any number of abstract classes.

    false. I don’t quite understand why, is it just because in an inheriting class the the parent classes could cause a conflict?

  2. In Java, it is illegal to pass a parameter whose type is an abstract class.

    False, abstract classes don’t even have constructors…

  3. In Java, an abstract class can have any number of subclasses.

    True. I can’t think of anything that would restrict this.

  4. In Java, there is no restriction on the number of interfaces a class can implement.

    True

  5. It is not possible to implement a stack as a doubly-linked list, because a stack requires access to only one end of the list, and a doubly-linked list provides access to both ends of the list.

    true. but it wouldn’t be very efficient.

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T18:20:24+00:00Added an answer on May 11, 2026 at 6:20 pm

    1) It is false because Java does not support multiple inheritance. A class can only extend one class, whether it is abstract or not. It can transitively extend multiple classes (e.g., it extends B which extends C so indirectly it also extends C). A class can implement multiple interfaces. There are many reasons why Java does not support multiple inheritance, but it does support multiple interfaces, so it is better in many ways.

    2) First of all, abstract classes can have constructors. The claim is false because you are allowed to pass abstract types as parameters. Because of polymorphism, you will be passing a concrete subtype that you instantiated already.

    3) That is true

    4) That is true to a degree (there is some limit by the JVM implementation, but you’ll never hit it in practice)

    5) You can easily implement a stack as a doubly linked list, it’s a good exercise. It is even efficient since you’re still doing everything at O(1).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently a teacher said PHP isn't a real programming language, but only gave, in
This IS NOT homework, but it is a practice that the teacher gave us
I'm new to C++ and my teacher gave me a practice program to write
Background : An art teacher once gave me a design problem to draw a
We have studied the Variable Elimination recently and the teacher emphasizes that it is
I'm studying for a final exam and I stumbled upon a curious question that
My teacher gave me this question: Write a program that does the following: Enter
just had a walkthrough in class and the example code our teacher gave us
Teacher in class gave this formula w = x**2 + y**2 - z**2 and
Our teacher gave us the pseudocode for Merge Sort as below I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.