• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parametric polymorphism  RSS feed

 
Simon Cockayne
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There is a nice article (http://www.javaworld.com/javaworld/jw-10-2001/jw-1005-java101-p2.html) that discusses the four type of polymorphism:

coercion, overloading, parametric and inclusion (subtype).

The article states that (in 2001) Java only supported three types, not including parametric.

The article suggests that Java 1.5 would include support for parametric polymorphism.

My question, does it? If so any examples? If not, is it scheduled?

Cheers,

Simon.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because this is a general question about Java rather than a question specific to SCJP I am moving it to Java In General (Intermediate).
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably more than you want to know: Angelika's Java Generics FAQ.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And the short answer: yes.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!