Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

collection Framework

 
siddu banjapally
Greenhorn
Posts: 13
Chrome Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the super class in java collection framework?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
siddu banjapally wrote:what is the super class in java collection framework?


Very abstract question. Is there some specific class/collection class you are looking at? The best solution would be to check out the java docs
 
Gamini Sirisena
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find this out from the java api

May be you can tell us what it is..
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not one common superclass to all collection classes in the Java collection framework.
 
siddu banjapally
Greenhorn
Posts: 13
Chrome Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we say that abstract class as super class if our class extends ?


example:
class Hashmap extends AbstactMap{
// code
}

 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regardless of abstract, if a class A extends from class B, then class B is the super class of A.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
siddu banjapally wrote:class Hashmap extends AbstactMap {

This means that class AbstactMap is the superclass of class Hashmap. (Note that in the Java API, there is a class AbstractMap and a class HashMap).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic