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

  • Home
  • SEARCH
  • 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
  • 1 View
  • 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

Ask A Question

Stats

  • Questions 112k
  • Answers 112k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Basically, it's a shell script prepended to a compressed archive… May 11, 2026 at 9:57 pm
  • Editorial Team
    Editorial Team added an answer The CVS revision number reflects how many times that file… May 11, 2026 at 9:57 pm
  • Editorial Team
    Editorial Team added an answer It looks like you aren't specifying the method properly; Each… May 11, 2026 at 9:57 pm

Related Questions

I'm studying ICT. One of my courses is C# and another is Physics. Our
My teacher has given me two bnf grammars: A ::= 'd' | A 'e'
Yet again, my teacher was unable to answer my question. I knew who may
I am currently in an operating systems class and my teacher spent half of
In a software development class at my university, the teacher kept mentioning that on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.