A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Access value of the private variable outside the class?
Joined: Oct 25, 2004
Jan 18, 2008 02:35:00
Can you help in finding the answer for following?
1)Is there any way in
to access the value of the private variable outside the class?
Joined: Apr 14, 2004
Jan 18, 2008 02:47:00
Yes. Have a search through these forums, you'll find the answer.
Joined: Jan 09, 2008
Jan 18, 2008 07:40:00
You can use reflection, see here:
You may want to use Apache commons beanutils, see here:
rocket mass heater
subject: Access value of the private variable outside the class?
private member doubt
How to know a variable is accessed?
How to access private static variables outside the class?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014