How to find that class is already loaded in Heap or not?

3 views
Skip to first unread message

ankurguptajpr

unread,
Apr 24, 2014, 9:52:07 AM4/24/14
to newidea_or...@googlegroups.com
Questions : In java how can we identify whether class is already there in heap or not?
Intention of asking this question is if you want that one class is already loaded in heap then from your class you should not creat new object rather use the old one.
More over another way of creating singleton but without using traditional way...may sound funny ;)
Reply all
Reply to author
Forward
0 new messages