SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by mandlar suurla:
Ty
then i need create instance right, but how to do that?
Originally posted by Norm Radder:
It shouldn't be possible. It would violate the private attribute!
If you need to see a private variable's content at runtime, you need to modify the class so it will give you the value you want to see.
There wouldn't be much security if you could bypass it using reflection.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Originally posted by mandlar suurla:
Ty your helping me lot, but if its not static, then i need create instance right, but how to do that?
I got swing app and there is private field number. When i am running that app i want get with other app the number field. I cant just make instance of that program SwingApp app = SwingApp();, i need to get that instance which is running in that movement. I hope you understand my text. If not ill try to explain more.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Norm Radder:
thanks Rob.
I'm suprised that you can so easily see the value of a private member. I wrote a short test program and it worked!
Originally posted by mandlar suurla:
No they are not running seperate JVM-s just are seperate programs.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |