Does java provides class alias feature? -


i have seen question related c#

how create alias of system constants class

can tell me java provides similar feature

for eg.

system.out.println(sc.hello); //see previous question //here sc alias of class name systemconstants sc 

systemconstants.java class

class systemconstants {   public static final hello = "hello";   public static final youth = "youth"; } 

as far know, there not built-in alias system class names in java. if have specific needs, introspection might you, if matter 1 of usability , easy coding, overkill.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -