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
Post a Comment