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
Author

java.lang.Class

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.

-Amrutha
Stuart Ash
Ranch Hand

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

http://www-128.ibm.com/developerworks/java/library/j-dyn0429/
[ December 04, 2005: Message edited by: Stuart Ash ]

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

Joined: Oct 23, 2005
Posts: 3697
    
    5

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.
 
 
subject: java.lang.Class
 
Similar Threads
How to implement instaceof operator
Use of Custom Annotations
Making an object from string
Is there any way with which i can view entire contents of an object(instance members)
Return type of MyClass.class