Comment on Java Puzzle: Square RootComments−jlebar13yUse reflection to read n. Reflection lets you bypass |private|.−craigching13yHe specifically says you need to leave the security manager in place and you can't use setAccessbile() which you need to do with the default security manager.−GhotiFish13ythat should throw an exception with the security manager on. I think. I might of read the docs wrong.−jlebar13yAhh, I see.
Comments
Use reflection to read n. Reflection lets you bypass |private|.
He specifically says you need to leave the security manager in place and you can't use setAccessbile() which you need to do with the default security manager.
that should throw an exception with the security manager on. I think. I might of read the docs wrong.
Ahh, I see.