This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes About the class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "About the class "Class"" Watch "About the class "Class"" New topic
Author

About the class "Class"

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3775

Hi Friends,

I found this in the java API here

The primitive Java types (boolean, byte, char, short, int, long, float, and double), and the keyword void are also represented as Class objects.


But we can't get the class from the primitive data types can we? It's built in to java, is it?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3168
    
  10
Originally posted by Vijitha Kumara:
Hi Friends,

I found this in the java API here



But we can't get the class from the primitive data types can we? It's built in to java, is it?


int.class, float.class, etc will give you the Class instance for each of the primitive types.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About the class "Class"
 
Similar Threads
Vector.add() compiler warning
OOPS Question
Primitive Data Types
Is java fully OOPS??
primitive types in java