No - java.lang prohibited. The security manager does not allow "custom" classes in the java.lang , and there is no way to tell it to accept them.
You are right - your own classes declared in the java.lang namespace will allow you to use the protected methods and class members in this package, and this is definitely not required.
This compiles fine, but - try executing it;)
package java.lang; public class EvilAsEvilCanBe { public static void main(String[] args) { System.out.println("hehe"); } }
source share