As the title says, in Ruby, ‘keywords’ such as private, public etc are actually “methods that operate on the class ,dynamically altering the visibility of the methods” ( http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Classes ) – is this the same in Java?
Thanks!
No. In Java this maps to something in the bytecode the the JVM understands (and enforces). The compiler makes use of it itself, too.
There is no “dynamic compilation/class manipulation” that happens when the class is loaded, like you can do in Ruby or Perl.