wood burning stoves 2.0*
The moose likes Java in General and the fly likes get inherited or parent class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "get inherited or parent class " Watch "get inherited or parent class " New topic
Author

get inherited or parent class

Kowshik Nandagudi
Ranch Hand

Joined: Dec 09, 2010
Posts: 57
Can I get the names of inherited Class, and Interfaces using java reflection ??

For example :

class ArrayList inherits AbstractList implements List<E>, RandomAccess, Cloneable, Serializable
I want the names of
AbstractList

RandomAccess,Cloneablem Serializable
Thanks in Advance
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Check out java.lang.Class and its methods.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: get inherited or parent class
 
Similar Threads
Questions from abHilash's mockexam
Casting Doubt
how come i can't call my search method from my main method?
ArrayList class
SubList