Re:Java Puzzle: Square Root
by jlebar on Tuesday March 19, 2013 @09:42PM
(#5405030)
Use reflection to read n. Reflection lets you bypass |private|.
[ Parent
| on HN ]
Re:Java Puzzle: Square Root
by craigching on Tuesday March 19, 2013 @09:55PM
(#5405084)
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.