This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark ""Object realted problem"" Watch ""Object realted problem"" New topic

"Object realted problem"

Vishal Methi
Ranch Hand

Joined: Jan 14, 2004
Posts: 52
Hi All,
I have 4 object of one class ..... either of one is active only ....... so it possible to get the name of the active object.....
So plz anyone let me know how to get the name of the object.......

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Active? What do you mean? Can you explain a little more thoroughly?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Moving this to the Java in General (Beginner) forum. Please continue this discussion there. Thank you

[Blog] [Blogroll] [My Reviews] My Linked In
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
What do you mean by "active"? And what do you mean by "the name of the object"? Do you really mean the name of the class?
If you can post some code to clarify your question, that will help us answer your questions more accurately.

Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: "Object realted problem"
It's not a secret anymore!