wood burning stoves 2.0
The moose likes Beginning Java and the fly likes java.lang.Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java.lang.Class" Watch "java.lang.Class" New topic


Sowjanya Chowdary
Ranch Hand

Joined: Aug 22, 2005
Posts: 35
Please anyone explain me what is the use of java.lang.Class.
I had gone through java api, but didn't got clear idea.

Thanks in advance for any help.

Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
This might help you.

[ December 04, 2005: Message edited by: Stuart Ash ]

ASCII silly question, Get a silly ANSI.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

There are times when you need to work with the class of an object as an object. Look at some tutorials on Reflection, as this is one of the more common cases. Another case is if you need to load files from the class-path using Class.getResourceAsStream().

[OCA 8 Book] [Blog]
Sowjanya Chowdary
Ranch Hand

Joined: Aug 22, 2005
Posts: 35
Many thanks to Stuart & Scott for the information.
I agree. Here's the link: http://aspose.com/file-tools
subject: java.lang.Class
jQuery in Action, 3rd edition