🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8032

Re: Reflection

#8032
From: John McGrath TeamB
Date: Sat, 28 Apr 2001 10:42
20 lines
1474 bytes
On 25 Apr 2001 19:08:51 -0700, Joi Ellis [TeamB] wrote:

> Well, by definition, a primitive type has no Class, it's built
> into the language itself.  
> 
> Perhaps you're thinking of the Integer wrapper class instead?

Actually, there is are Class objects for all primitive types, and void, 
too.  As far as I know, there is no way to retrieve these using the 
Class.forName() method, but you can refer to them using class name 
constants.  For example:  Class c = int.class;

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.155468344bf55e7c98a152@forums.borland.com>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3ae7826f_1@dnews> <3ae78333_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9781dfce69adbdb3
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-28 04:16:04 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Reflection
Date: Sat, 28 Apr 2001 06:42:22 -0400
Message-ID: <MPG.155468344bf55e7c98a152@forums.borland.com>
References: <3ae7826f_1@dnews> <3ae78333_2@dnews>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 988454542 209.92.40.60 (28 Apr 2001 03:42:22 -0700)
Lines: 20
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews