This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

collection Framework

 
siddu banjapally
Greenhorn
Posts: 13
Chrome Java Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the super class in java collection framework?
 
Mohamed Sanaulla
Saloon Keeper
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • 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