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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 3703

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().

My Blog: Down Home Country Coding with Scott Selikoff
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
Similar Threads
Is there any way with which i can view entire contents of an object(instance members)
How to implement instaceof operator
Return type of MyClass.class
Use of Custom Annotations
Making an object from string