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 9022365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:29:28+00:00 2026-06-16T05:29:28+00:00

Polymorphisim in Java stands for many forms what can be achieved by overriding sub-class

  • 0

Polymorphisim in Java stands for many forms what can be achieved by overriding sub-class method. Regarding generics which allows to pass in generic values, such as ArrayList<Object>. Is that part of polymorphism concept?
Cheers

  • 1 1 Answer
  • 0 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-06-16T05:29:29+00:00Added an answer on June 16, 2026 at 5:29 am

    Generics and Polymorphism are two different things.

    Generics are used primarily to specify which type is expected. You can use wildcards to define a range of types. E.g. <? extends List> could apply to any type of List (LinkedList, ArrayList)

    Polymorphism is the concept that an object can have many types. So an object can be an instance of List and an instance of ArrayList as an example.

    For example, imagine three classes

    public class Animal
    
    public class Dog extends Animal
    
    public class Cat extends Animal
    

    If you have an instance of Dog, that object is both a Dog AND an Animal.

    Obviously the two fit together quite nicely as if you define an ArrayList<Object> then you can add any Object to that list (Which is any class in Java)

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

Sidebar

Related Questions

Related: How can I use polymorphism in XML Serialization? I have a class I
Many statically typed languages have parametric polymorphism. For example in C# one can define:
I'm a bit confused about how Java generics handle inheritance / polymorphism. Assume the
I studied polymorphism and understand that it can do dynamic method binding like below.
For my Java class, we are learning about interfaces, polymorphism, inheritance, etc. The homework
I'm coming to the end of my intro programming class, we're using java and
I know Java forbids inheriting from multiple classes and allows implementing any number of
I have an abstract class that gets implemented by Java and by Android. This
I am learning java generics, and trying to implement it for events before someone
It is my understanding that parametric polymorphism is a technique which allows uniform actions

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.