THE PACKAGE JAVA.LANG
java.lang.Class
20.3
If this class object represents a class of arrays, then the name consists of the
name of the element type in Java signature format, preceded by one or more  
[
characters representing the depth of array nesting. For example:
(new Object[3]).getClass().getName()
returns
"[Ljava.lang.Object;"
 and:
(new int[3][4][5][6][7][8][9]).getClass().getName()
returns
"[[[[[[[I"
. The encoding of element type names is as follows:
B
byte
C
char
D
double
F
float
I
int
J
long
Lclassname; class or interface
S
short
Z
boolean
A class or interface name
classname
 is given in fully qualified form as shown in
the example above. For a full description of type descriptors see the chapter on the
format of class files in the
Java Virtual Machine Specification
.
20.3.3
public boolean isInterface()
If this
Class
 object represents an interface,
true
 is returned. If this
Class
 object
represents a class,
false
 is returned.
20.3.4
public Class getSuperclass()
If this
Class
 object represents any class other than the class
Object
, then the
Class
 that represents the superclass of that class is returned. If this
Class
 object
is the one that represents the class
Object
, or if it represents an interface,
null
 is
returned. If this
Class
 object represents an array class, then the
Class
 that repre 
sents class
Object
 is returned.
20.3.5
public Class[] getInterfaces()
This method returns an array of objects that represent interfaces. The array may be
empty.
If this
Class
 object represents a class, the array contains objects representing
all interfaces directly implemented by the class. The order of the interface objects
467






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved